diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-07 02:28:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-07 02:28:14 +0300 |
commit | 9ade3a594794b158138c6c8898ffdd0a340c6e50 (patch) | |
tree | c3114ee372aace20d0d670f022507a3eb376d4b1 /src | |
parent | 9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede (diff) | |
download | plus-9ade3a594794b158138c6c8898ffdd0a340c6e50.tar.gz plus-9ade3a594794b158138c6c8898ffdd0a340c6e50.tar.bz2 plus-9ade3a594794b158138c6c8898ffdd0a340c6e50.tar.xz plus-9ade3a594794b158138c6c8898ffdd0a340c6e50.zip |
Fix possible reading wrong pixel sizes in SDL2.
Diffstat (limited to 'src')
-rw-r--r-- | src/graphicsmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 008cc2d9f..0335fe53f 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -537,8 +537,8 @@ void GraphicsManager::initGraphics() config.getBoolValue("enableGuiOpacity")); #endif // USE_OPENGL createRenderers(); - detectPixelSize(); setVideoMode(); + detectPixelSize(); #ifdef USE_OPENGL if (config.getBoolValue("checkOpenGLVersion") == true) { @@ -583,8 +583,8 @@ void GraphicsManager::initGraphics() settings.options.renderer = CAST_S32(openGLMode); config.setValue("opengl", settings.options.renderer); createRenderers(); - detectPixelSize(); setVideoMode(); + detectPixelSize(); } } #if !defined(ANDROID) && !defined(__APPLE__) |