mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
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
This commit is contained in:
parent
6dcf366b7d
commit
744a1829ac
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user