aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorColin Snover2017-10-01 01:04:24 -0500
committerColin Snover2017-10-07 12:30:29 -0500
commit9a82bc6d9677f283b26a0969d3dfa82372d82cec (patch)
treea987370b318f04c9ea3ff2baf123a9cd8447bbd7 /backends
parent432fd522d243f0779d2ebf99e8983dbb95cdd175 (diff)
downloadscummvm-rg350-9a82bc6d9677f283b26a0969d3dfa82372d82cec.tar.gz
scummvm-rg350-9a82bc6d9677f283b26a0969d3dfa82372d82cec.tar.bz2
scummvm-rg350-9a82bc6d9677f283b26a0969d3dfa82372d82cec.zip
SDL: Deduplicate scaling factors
Diffstat (limited to 'backends')
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.cpp31
1 files 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);