Him

[EMAIL PROTECTED] writes:

> What is hinted at there is that cursor.dat needs to be replaced with
> another ARGB image. Here are my questions:

> 1. How do you create an ARGB image? Do I use The Gimp, XV, XnView,
> ImageMagick? And what extension will create a valid file on the
> tools that can use the extension to define the format like Gimp?

The preferred way to exchange the cursor is not to replace cursor.dat
but to use IDirectFBDisplayLayer::SetShape. The file cursor.dat just
defines the DirectFB fallback cursor but DirectFB application are
supposed to set their own cursor shape. This function takes an
IDirectFBSurface pointer. Of course you can create such a surface from
image files. PNG would be a good file format since it allows to store
an alpha channel. Alternatively you can use directfb-csource to create
a surface that you can compile into your application.

> 2. Is there an easier way to define the cursor instead of physically
> replacing it? Like a global variable that can define the absolute
> path to any valid image.
> 
> I realize you are early in development yet, but ease of
> configuration can make adoption from a wider audience happen
> quicker.

As I outlined above, you aren't really supposed to ever see the
standard DirectFB cursor so it probably doesn't make much sense to
make it configurable.


Sven



-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to