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.
This commit is contained in:
Johannes Schickel 2013-10-21 01:10:09 +02:00
parent d34c9d5bcb
commit c323dedf3c
2 changed files with 18 additions and 2 deletions

View file

@ -115,6 +115,8 @@ protected:
Common::Array<int> _graphicsModeIds;
int _graphicsMode;
int _firstGLMode;
int _defaultSDLMode;
int _defaultGLMode;
/**
* Creates the merged graphics modes list