From 97953ff40d1281da7bf3d7fe466db6d317c466d5 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 7 Jan 2014 01:46:28 +0100 Subject: SDL: Fix return value of getDefaultGraphicsMode when scalers are disabled. --- backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index c946b8e747..9b71a1e3a4 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -267,7 +267,11 @@ const OSystem::GraphicsMode *SurfaceSdlGraphicsManager::getSupportedGraphicsMode } int SurfaceSdlGraphicsManager::getDefaultGraphicsMode() const { +#ifdef USE_SCALERS return GFX_DOUBLESIZE; +#else + return GFX_NORMAL; +#endif } void SurfaceSdlGraphicsManager::resetGraphicsScale() { -- cgit v1.2.3