Manfred Twrznik/maennerseminare.at schrieb:
> Hi,
> I 'm trying to get a colorkeyed mouse cursor, but regardless what I 
> try, it does not work.
> 
> I use a layer, a full-screen window and a window-surface. For the 
> mousecursor I use a gif-file, which is a white arrow in a black 
> rectangle and has the color black marked as transparent. If I blit the 
> picture somewhere at the window-surface, only the non-black part, e.g. 
> the arrow of the gif is blitted. But if I use the same surface as a 
> mousecursor, I have the whole gif (black rectangle and white arrow) as 
> cursor.

At the moment color keyed cursors are not supported. In the past, I
think, it was limited to a predefined color key, maybe ff00ff.

I can readd the color key support (now in wm code), but we need to find
a way to set the color key. A surface on its own never has a color key.
It's the rendering state and the public interface that takes care. But
the SetCursorShape() method could read out that information from
IDirectFBSurface's data. So it should be possible without API changes,
as long as the SetSrcColorKey() has happened on the cursor surface
before setting the shape.

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to