From dbc30204cae020ff0be41fb8f20bbb3a531686b3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Jan 2014 00:55:06 +0300 Subject: allow apply scale without client restart. --- src/graphicsmanager.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/graphicsmanager.cpp') diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 0a7f78eb6..00cceb22f 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -376,17 +376,7 @@ void GraphicsManager::setVideoMode() int width = config.getIntValue("screenwidth"); int height = config.getIntValue("screenheight"); #endif - - int scale = 1; - if (mainGraphics->allowScale()) - { - if (!scale) - scale = 1; - scale = config.getIntValue("scale"); - if (width / scale < 470 || height / scale < 320) - scale = 1; - logger->log("set scale: %d", scale); - } + const int scale = config.getIntValue("scale"); // Try to set the desired video mode if (!mainGraphics->setVideoMode(width, height, scale, bpp, -- cgit v1.2.3-70-g09d2