From 9daa1c7f9359ca2467e9067b2f31021fdb7e0981 Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Fri, 30 Jul 2010 03:06:57 +0000 Subject: OSYSTEM: Add resetGraphicsScale() method. This fixes a hack for resetting the graphics scale to x1 when starting games that have a large screen size. The SDL graphics manager should now scale back to x1 without changing the current scaler in use, as well as the OpenGL graphics manager. svn-id: r51492 --- engines/engine.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'engines/engine.cpp') diff --git a/engines/engine.cpp b/engines/engine.cpp index 84fc0bbe4e..3c85220931 100644 --- a/engines/engine.cpp +++ b/engines/engine.cpp @@ -154,10 +154,7 @@ void initCommonGFX(bool defaultTo1XScaler) { // See if the game should default to 1x scaler if (useDefaultGraphicsMode && defaultTo1XScaler) { - // FIXME: As a hack, we use "1x" here. Would be nicer to use - // getDefaultGraphicsMode() instead, but right now, we do not specify - // whether that is a 1x scaler or not... - g_system->setGraphicsMode("1x"); + g_system->resetGraphicsScale(); } else { // Override global scaler with any game-specific define if (ConfMan.hasKey("gfx_mode")) { -- cgit v1.2.3