diff options
author | Littleboy | 2015-05-15 23:36:40 -0400 |
---|---|---|
committer | Littleboy | 2015-05-16 01:29:15 -0400 |
commit | 40e019efd45a02261a7dbc69ceaa9188d8c7a269 (patch) | |
tree | 8983f93e09288dca28f0838d03b8e14149f78dad /devtools/create_project/scripts | |
parent | ed3a32a91ab9d1d1880034e1e09de3d16c17ed4a (diff) | |
download | scummvm-rg350-40e019efd45a02261a7dbc69ceaa9188d8c7a269.tar.gz scummvm-rg350-40e019efd45a02261a7dbc69ceaa9188d8c7a269.tar.bz2 scummvm-rg350-40e019efd45a02261a7dbc69ceaa9188d8c7a269.zip |
SDL: Restore the original video mode when unloading the Surface graphics manager
We set a custom video mode that might have a different BPP from the default. To ensure that other graphics managers will get the proper results when listing available video modes, we need to restore the initial BPP when unloading.
This fixes an issue when switching to OpenGL on Windows 8 and later. On those OSes, fullscreen OpenGL only has a 32bpp mode. It is correctly listed in the options but we call SLD_SetVideoMode later in the surface graphics manager. When we list the mode again after a switch, the internally selected BPP is still 16 and we fail to find any available fullscreen modes.
Diffstat (limited to 'devtools/create_project/scripts')
0 files changed, 0 insertions, 0 deletions