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:
parent
d34c9d5bcb
commit
c323dedf3c
2 changed files with 18 additions and 2 deletions
|
@ -115,6 +115,8 @@ protected:
|
|||
Common::Array<int> _graphicsModeIds;
|
||||
int _graphicsMode;
|
||||
int _firstGLMode;
|
||||
int _defaultSDLMode;
|
||||
int _defaultGLMode;
|
||||
|
||||
/**
|
||||
* Creates the merged graphics modes list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue