Quoting Manhart Matthias ([EMAIL PROTECTED]): > Hello, > > i use DirectFB 0.9.19 and i would like to exchange the mouse-shape into > a userdefined shape. I could load a small GIF-file as a new mouse-shape > with SetCursorShape (Layer). But the shape was a rectangle. I set a > transparent color, but on the screen this color was displayed in black. > I use the ssame code to load GIF-files with transparent color and this > works fine. > > How can i load a mouse-shape with a a transparent color ?
The surface for the cursor shape has to be in ARGB format. Simply set the pixel format in the surface description to DSPF_ARGB before calling CreateSurface() and RenderTo(). > What kind of file-format has "cursor.dat" ? It is a raw ARGB pixel dump of a 40x40 image. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" Convergence GmbH -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-users" as subject.
