SDL/src
Sam Lantinga 70df9cd0cd Fullscreen to windowed mode switch
From Melesie

I noticed that when user switches from fullscreen mode to windowed mode and exits application while in windowed mode, Windows performs an additional change of display settings, even though desktop resolution is the same as current one. This causes short black screen to show up. The only way I know of avoiding this is to explicitly switch to default display settings found in registry. MSDN documentation for ChangeDisplaySettingsEx states:

Passing NULL for the lpDevMode parameter and 0 for the dwFlags parameter is the easiest way to return to the default mode after a dynamic mode change.
2014-05-31 12:21:55 -07:00
..
atomic Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
audio __ANDROID__ is the correct macro to check for an android system.ANDROID is only defined in NDK build system (.mk) and not in the standalone NDK. 2014-05-05 22:21:26 +03:00
core Changed C++ style comments to fix pedantic warnings. 2014-05-17 22:02:25 +02:00
cpuinfo Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
dynapi Generated dynapi stuff for the new WinRT entry points. 2014-05-24 01:23:57 -04:00
events Fixed SDL error when filtering events after shutdown. 2014-05-31 11:33:25 -07:00
file __ANDROID__ is the correct macro to check for an android system.ANDROID is only defined in NDK build system (.mk) and not in the standalone NDK. 2014-05-05 22:21:26 +03:00
filesystem Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
haptic Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
joystick Added a binding for the NVIDIA Shield controller 2014-05-13 12:10:37 -07:00
libm Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
loadso Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
main Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
power Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
render Use D3D9Ex when available 2014-05-31 11:37:12 -07:00
stdlib Align pointer in SDL_memset before doing Uint32 loop 2014-05-10 21:48:46 -03:00
test Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
thread Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
timer Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
video Fullscreen to windowed mode switch 2014-05-31 12:21:55 -07:00
SDL.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_assert.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_assert_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_error.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_error_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_hints.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_internal.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_log.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00