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. |
||
---|---|---|
.. | ||
win32-main.cpp | ||
win32-window.cpp | ||
win32-window.h | ||
win32.cpp | ||
win32.h | ||
win32.mk | ||
win32_wrapper.cpp | ||
win32_wrapper.h |