Lloyd Sargent wrote:
> I've got the following code:
>
> DirectFBInit (&argc, &argv);
> DirectFBCreate (&dfb);
> dfb->SetVideoMode(dfb, 720, 480, 16);
> dfb->SetCooperativeLevel (dfb, DFSCL_NORMAL);
> dsc.flags = DSDESC_CAPS;
> dsc.caps = DSCAPS_PRIMARY | DSCAPS_FLIPPING;
Unless you set the dfb cooperative level to
DFSCL_FULLSCREEN, this will produce only a window.
> dfb->CreateSurface( dfb, &dsc, &primary);
>
If you need to access to the display layer funs, do
the following instead of creating a DSCAPS_PRIMARY surface:
dfb->GetDisplayLayer(dfb, DLID_PRIMARY, &primaryDisplayLayer);
primaryDisplayLayer->SetCooperativeLevel (DLSCL_EXCLUSIVE);
/* Change the video mode by using SetConfiguration() */
primaryDisplayLayer->GetSurface (primaryDisplayLayer, &primary);
> //----- get the primary layer
> dfb->GetDisplayLayer(dfb, DLID_PRIMARY, &primaryDisplayLayer);
primaryDisplayLayer->SetCooperativeLevel (DLSCL_ADMINISTRATIVE) or
primaryDisplayLayer->SetCooperativeLevel (DLSCL_EXCLUSIVE)
>
> //----- kill the cursor
> primaryDisplayLayer->SetCursorOpacity (primaryDisplayLayer, 0);
>
> The idea is that I have a device that will never need the cursor.
> Unfortunately, it seems that no matter what the heck I do, the cursor is
> there in the middle of the screen.
>
> Thanks for any help!
>
> Cheers,
>
> Lloyd
>
--
Regards,
Claudio Ciccani
[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users