maximized->fullscreen?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

maximized->fullscreen?

Mark Sibly
Hi,

Has anyone encountered problems with going from a maximized window into fullscreen mode?

I'm finding SDL_SetWindowFullscreen() only works properly if the window is in the 'restored' state. If the window is maximized, the window appears to go into 'fake' fullscreen mode instead of the mode selected by SDL_SetWindowDisplayMode.

This is on Windows 10 with latest SDL repos.

Bye!
Mark

_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Reply | Threaded
Open this post in threaded view
|

Re: maximized->fullscreen?

梦影幻忆
OS:windows10 SDL:v2.0.5
Desktop resolution:1920x1080
SDL resolution:960x540

Just use SDL_SetWindowFullscreen(SDL_WINDOW_HIDDEN and SDL_WINDOW_FULLSCREEN) , no more.

First:
SDL_SetWindowFullscreen(???,SDL_WINDOW_FULLSCREEN);//right

Second:
SDL_SetWindowFullscreen(???,SDL_WINDOW_HIDDEN );//right

Third:
SDL_SetWindowFullscreen(???,SDL_WINDOW_FULLSCREEN);//right

Fourth:
SDL_SetWindowFullscreen(???,SDL_WINDOW_HIDDEN );//error

I don't know why.
registration window style have been changed, and sdl resolution not is 960x540 , look like 800x600,maybe.
So I cancelled full screen function.

_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Reply | Threaded
Open this post in threaded view
|

Re: maximized->fullscreen?

梦影幻忆
And SDL_SetWindowPosition(???, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED) failure.

_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org