[SDL] Can't FullScreen when setting SDL_windowid by putenv()
Alvin
alvinbeach at gmail.com
Tue Jan 16 06:13:52 PST 2007
On Tuesday 16 January 2007 09:10, gaofg wrote:
> ...
> Would anybody be kindly to give me some advice to implement the proper
> fullscreen function when I use my own widget's window to display the
> decoded image instead of the window which created by SDL itself. How should
> I modify the corresponding codes to settle down the problem?
I have done something similar using the FLTK toolkit. To get the fullscreen to
work I had to unset the environment variable "SDL_windowid" and then
reinitialise the SDL_Screen with the SDL_FULLSCREEN flag. When coming out of
fullscreen mode, just set the SDL_windowid environment variable and
reinitialise the SDL_Screen.
Conceptually, it's similar to taking the SDL_Screen out of the widget, then
making it go fullscreen. When exiting fullscreen mode, the SDL_Screen is put
back inside the widget.
Alvin
More information about the SDL
mailing list