diff options
| author | Johannes Schickel | 2013-10-21 01:10:09 +0200 | 
|---|---|---|
| committer | Johannes Schickel | 2013-10-23 22:59:09 +0200 | 
| commit | c323dedf3c5bc293e664d298b74be63658fc55bf (patch) | |
| tree | 452029d9ed16c4da43a037f7c8b60b9fd638f64f /backends/platform/sdl/sdl.h | |
| parent | d34c9d5bcbbad9fdde59143d15d7e18bc82231c1 (diff) | |
| download | scummvm-rg350-c323dedf3c5bc293e664d298b74be63658fc55bf.tar.gz scummvm-rg350-c323dedf3c5bc293e664d298b74be63658fc55bf.tar.bz2 scummvm-rg350-c323dedf3c5bc293e664d298b74be63658fc55bf.zip | |
SDL: Fix default graphics mode for switchable case.
The former code (incorrectly) assumed that the getDefaultGraphicsMode returns
the index in the table returned by getSupportedGraphicsModes. Now the correct
ID is searched and then used.
Diffstat (limited to 'backends/platform/sdl/sdl.h')
| -rw-r--r-- | backends/platform/sdl/sdl.h | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h index 6c7f371f2e..814cdd7c1b 100644 --- a/backends/platform/sdl/sdl.h +++ b/backends/platform/sdl/sdl.h @@ -115,6 +115,8 @@ protected:  	Common::Array<int> _graphicsModeIds;  	int _graphicsMode;  	int _firstGLMode; +	int _defaultSDLMode; +	int _defaultGLMode;  	/**  	 * Creates the merged graphics modes list | 
