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. So if i understand correctly to
switch a window to fullscreen:
1. delete the window (and all other windows i might have)
2. set the exclusive mode to the layer
3. get the primary layer surface
4. and what about the events? i have to create a new eventbuffer and
handle them as i did with the window events
5. attach the logic of my program to this new surface

and to restore the windows state
1. release the layer surface
2. create all the windows i had, again

is this correct?


> But once you did the initialization you can use the same code
> for the resulting IDirectFBSurface, either of a window or a layer.
> 
> > btw, with my recent post, the problem of the black screen was solved
> > setting force-window in the directfbrc.
> 
> Yes, with force-windowed the single buffered fullscreen apps cause
> a flipping thread to be created that periodically calls Flip(). But
> it's not advisable, because manual Flip()s can be placed much more
> intelligent yielding better performance.
> 
> --
> Best regards,
>   Denis Oliver Kropp
> 
> .------------------------------------------.
> | DirectFB - Hardware accelerated graphics |
> | http://www.directfb.org/                 |
> "------------------------------------------"
> 

thanks in advance,
Jorge

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

Reply via email to