Hi, I've got my DFB application running under X11. I've got a single
surface used for drawing, and I'm trying to enable the cursor on it.

I've tried this to get access to the display layer (making the
assumption that it would have id 0):

                displayable_dfb->GetDisplayLayer(displayable_dfb, 0, &layer);
                layer->SetCooperativeLevel( layer, DLSCL_ADMINISTRATIVE );
                layer->EnableCursor(layer, 1);

The application works, except for this code. It always gives me an
integer divide by zero error when I try to enable the cursor.

Do I have to explicitly set the cursor shape before enabling the
cursor? Is there an enum defined somewhere that I should be passing
instead of 1 in EnableCursor(layer, 1)? And is there a better way to
access the display layer without assuming it is ID == 0? I checked the
manual entry for EnumDisplayLayers, and googled it, but couldn't find
a very solid example of how to use it.


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

Reply via email to