From 88363d5d361f04f47f7028bc7401029682e59095 Mon Sep 17 00:00:00 2001 From: Eric Culp Date: Tue, 14 Aug 2012 02:51:03 -0400 Subject: [PATCH] SDL: Fix error when USE_SCALERS is undefined --- backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index 529ae618a20..e0716b3c835 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -312,7 +312,7 @@ const OSystem::GraphicsMode *SurfaceSdlGraphicsManager::getSupportedGraphicsMode } int SurfaceSdlGraphicsManager::getDefaultGraphicsMode() const { - for (uint i = 0; i < s_supportedGraphicsModes->size(); ++i) { + for (uint i = 0; i < s_supportedGraphicsModes->size() - 1; ++i) { // if normal2x exists, it is the default if (strcmp((*s_supportedGraphicsModes)[i].name, "normal2x") == 0) return (*s_supportedGraphicsModes)[i].id;