From 9ade3a594794b158138c6c8898ffdd0a340c6e50 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 7 Sep 2017 02:28:14 +0300 Subject: Fix possible reading wrong pixel sizes in SDL2. --- src/graphicsmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphicsmanager.cpp') 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__) -- cgit v1.2.3-70-g09d2