Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between SDL_WINDOW_FULLSCREEN and SDL_WINDOW_FULLSCREEN_DESKTOP?

Tags:

sdl-2

In SDL2, what is the difference between the window SDL_WINDOW_FULLSCREEN and SDL_WINDOW_FULLSCREEN_DESKTOP flags?

My current theory is that SDL_WINDOW_FULLSCREEN polls the actual hardware resolution while SDL_WINDOW_FULLSCREEN_DESKTOP polls the resolution in which the operating system is writing.

like image 542
Izzo Avatar asked Oct 16 '22 17:10

Izzo


1 Answers

SDL wiki describes it in 'remarks' section.

Fullscreen asks operating system to set specified video mode for calling application semi-exclusive use. Video mode may differ from current operatign system's one. The downside is if you want to switch to another program with OS hotkeys, OS will have to switch video mode back, so you can't see your program running in background (and there is also a pause to switch video mode).

Windowed-fullscreen is just ordinary windowed, but window size is set to match screen resolution and window decorations are disabled.

You can find more information at e.g. http://pcgamingwiki.com/wiki/Glossary:Borderless_fullscreen_windowed

like image 148
keltar Avatar answered Oct 21 '22 00:10

keltar