aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2014-01-07 01:47:43 +0100
committerJohannes Schickel2014-01-07 01:47:43 +0100
commit0c7f795c5bfac931436d1089aa97a15906b3f1a7 (patch)
treef55461c3bf0e35133378272867fcffac5085e022
parent97953ff40d1281da7bf3d7fe466db6d317c466d5 (diff)
downloadscummvm-rg350-0c7f795c5bfac931436d1089aa97a15906b3f1a7.tar.gz
scummvm-rg350-0c7f795c5bfac931436d1089aa97a15906b3f1a7.tar.bz2
scummvm-rg350-0c7f795c5bfac931436d1089aa97a15906b3f1a7.zip
SDL: Silence unused variable warning when scalers are disabled.
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index 9b71a1e3a4..0a4dcf3ea3 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -1080,7 +1080,9 @@ void SurfaceSdlGraphicsManager::internUpdateScreen() {
for (r = _dirtyRectList; r != lastRect; ++r) {
register int dst_y = r->y + _currentShakePos;
register int dst_h = 0;
+#ifdef USE_SCALERS
register int orig_dst_y = 0;
+#endif
register int rx1 = r->x * scale1;
if (dst_y < height) {
@@ -1088,7 +1090,9 @@ void SurfaceSdlGraphicsManager::internUpdateScreen() {
if (dst_h > height - dst_y)
dst_h = height - dst_y;
+#ifdef USE_SCALERS
orig_dst_y = dst_y;
+#endif
dst_y = dst_y * scale1;
if (_videoMode.aspectRatioCorrection && !_overlayVisible)