scummvm/backends/platform/sdl/win32
Thierry Crozat 7c9761b2da SDL: Fix switching to the <default> graphics mode
The OSystem_SDL::getDefaultGraphicsMode  was returning the
default for the current graphics manager and not the default
for the OSystem_SDL instance. So for example if the default
is SDL Surface when starting ScummVM with the gfx_mode not
set in the config file, and then the user selects the OpenGL
graphics mode, getDefaultGraphicsMode() would now return the
OpenGL mode (the default the OpenGLGraphicsManager). As a
result changing the graphics mode back to <default> and
applying the change would not switch back to Surface SDL
until you restart ScummVM or start a game.

This commit also change how the SDL backends can specify which
graphics mode to use by default. They no longer have to assume
they know the names of the graphics modes in the graphics manager.
2021-08-15 17:43:43 +01:00
..
win32-main.cpp WIN32: Make main() arguments UNICODE compatible 2021-06-29 12:38:01 -05:00
win32-window.cpp ALL: Sync with ScummVM - rev. cd37d510f9 2019-01-26 20:47:55 +01:00
win32-window.h WIN32: Add override and final keywords 2020-10-16 18:32:08 +01:00
win32.cpp SDL: Fix switching to the <default> graphics mode 2021-08-15 17:43:43 +01:00
win32.h SDL: Fix switching to the <default> graphics mode 2021-08-15 17:43:43 +01:00
win32.mk BUILD: Support peldd on mingw cross-compiler 2021-07-30 05:47:22 +03:00
win32_wrapper.cpp WIN32: Make main() arguments UNICODE compatible 2021-06-29 12:38:01 -05:00
win32_wrapper.h WIN32: Make main() arguments UNICODE compatible 2021-06-29 12:38:01 -05:00