On Saturday 24 June 2006 02:51 am, Claudio Ciccani wrote:
> 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.

Okay, I get it. I hadn't noticed that you could set the CooperativeLevel of 
the layers. My bad. As for the rest, I had made them into windows (which is 
what I need) and everything is ticking nice and smooth WITHOUT the cursor 
(sweet!).

Thanks!

Lloyd

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

Reply via email to