aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-10-08 13:33:54 +0000
committerFilippos Karapetis2010-10-08 13:33:54 +0000
commit744a1829ac4927d2b30fc6ca8c2c064ec7bb6091 (patch)
treea2a5c7da2d46f3c5f1f0f46549c32bab4c2a1c12 /engines
parent6dcf366b7d5d6700c416d0f6b0c2d8d6bf40bb00 (diff)
downloadscummvm-rg350-744a1829ac4927d2b30fc6ca8c2c064ec7bb6091.tar.gz
scummvm-rg350-744a1829ac4927d2b30fc6ca8c2c064ec7bb6091.tar.bz2
scummvm-rg350-744a1829ac4927d2b30fc6ca8c2c064ec7bb6091.zip
SCI: Added a check for magnifier cursor multipliers
Sierra SCI only allowed multipliers 1, 2 and 4, and errored out on unexpected values, thus we do the same svn-id: r53072
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/cursor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp
index 2f881e1a76..7a37d7e865 100644
--- a/engines/sci/graphics/cursor.cpp
+++ b/engines/sci/graphics/cursor.cpp
@@ -441,6 +441,9 @@ void GfxCursor::kernelSetZoomZone(byte multiplier, Common::Rect zone, GuiResourc
_zoomMultiplier = multiplier;
+ if (_zoomMultiplier != 1 && _zoomMultiplier != 2 && _zoomMultiplier != 4)
+ error("Unexpected zoom multiplier (expected 1, 2 or 4)");
+
_zoomCursorView = new GfxView(_resMan, _screen, _palette, viewNum);
_zoomCursorLoop = (byte)loopNum;
_zoomCursorCel = (byte)celNum;