From 9a82bc6d9677f283b26a0969d3dfa82372d82cec Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sun, 1 Oct 2017 01:04:24 -0500 Subject: SDL: Deduplicate scaling factors --- .../graphics/surfacesdl/surfacesdl-graphics.cpp | 31 +++++----------------- 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index 0e802f6257..de54145d5f 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -614,42 +614,25 @@ bool SurfaceSdlGraphicsManager::setGraphicsMode(int mode) { break; #ifdef USE_SCALERS case GFX_DOUBLESIZE: - newScaleFactor = 2; - break; - case GFX_TRIPLESIZE: - newScaleFactor = 3; - break; - case GFX_2XSAI: - newScaleFactor = 2; - break; case GFX_SUPER2XSAI: - newScaleFactor = 2; - break; case GFX_SUPEREAGLE: - newScaleFactor = 2; - break; case GFX_ADVMAME2X: - newScaleFactor = 2; - break; - case GFX_ADVMAME3X: - newScaleFactor = 3; - break; + case GFX_TV2X: + case GFX_DOTMATRIX: #ifdef USE_HQ_SCALERS case GFX_HQ2X: +#endif newScaleFactor = 2; break; + case GFX_TRIPLESIZE: + case GFX_ADVMAME3X: +#ifdef USE_HQ_SCALERS case GFX_HQ3X: +#endif newScaleFactor = 3; break; #endif - case GFX_TV2X: - newScaleFactor = 2; - break; - case GFX_DOTMATRIX: - newScaleFactor = 2; - break; -#endif // USE_SCALERS default: warning("unknown gfx mode %d", mode); -- cgit v1.2.3