On Wed, Sep 21, 2005 at 05:32:29PM +0200, Jorge Luis Zapata Muga wrote:
> On 9/13/05, Denis Oliver Kropp <[EMAIL PROTECTED]> wrote:
> > Quoting Jorge Luis Zapata Muga:
> > > hi all, i am able to set up differents windows  in the layer but can i
> > > toggle a window to fullscreen mode? is there a way?
> > 
> > No, you'd have to do that on your own by destroying the window
> > and switching the display layer to exclusive cooperative level,
> > setting the configuration and getting its surface.
> > 
> 
> Ok, but in what mode does the main interface (IDirectFB) should be?
> (NORMAL, FULLSCREEN, EXCLUSIVE) as setting the cooperative level in
> two sides is confusing (the layer and the main interface) maybe you
> can explain me a little about this.

IDirectFB::SetCooperativeLeveL() affects how 
CreateSurface()+DSCAPS_PRIMARY and SetVideoMode() work. With DFSCL_NORMAL 
your surface belongs to an implicitly created window and with 
DFSCL_FULLSCREEN/DFSCL_EXCLUSIVE your get the primary layer's surface. So 
if your app is simple enough you can use this method to get easy 
windows<->fullscreen switching and the same input code applies for both 
cases. If you need more control over windows or layers you have to use 
the more complicated way.

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to