diff options
author | Max Horn | 2003-07-01 15:26:07 +0000 |
---|---|---|
committer | Max Horn | 2003-07-01 15:26:07 +0000 |
commit | 09e47bad3d6b7294c9dd494790c2c5a4bfeff0b0 (patch) | |
tree | 452d9298f4a3895df13b0e36d1ca01641ce3d7ac | |
parent | 4f91c49836a16d3c5e6334a8a8ff60d62c67bc3e (diff) | |
download | scummvm-rg350-09e47bad3d6b7294c9dd494790c2c5a4bfeff0b0.tar.gz scummvm-rg350-09e47bad3d6b7294c9dd494790c2c5a4bfeff0b0.tar.bz2 scummvm-rg350-09e47bad3d6b7294c9dd494790c2c5a4bfeff0b0.zip |
only adjust gdi._mask if _charset->_hasMask is set to true
svn-id: r8689
-rw-r--r-- | scumm/camera.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/scumm/camera.cpp b/scumm/camera.cpp index 67df602705..ce248ac165 100644 --- a/scumm/camera.cpp +++ b/scumm/camera.cpp @@ -337,13 +337,15 @@ void Scumm::cameraMoved() { virtscr[0].xstart = _screenStartStrip << 3; #endif - int dx = camera._cur.x - camera._last.x; - int dy = camera._cur.y - camera._last.y; - if (dx || dy) { - gdi._mask.left -= dx; - gdi._mask.right -= dx; - gdi._mask.top -= dy; - gdi._mask.bottom -= dy; + if (_charset->_hasMask) { + int dx = camera._cur.x - camera._last.x; + int dy = camera._cur.y - camera._last.y; + if (dx || dy) { + gdi._mask.left -= dx; + gdi._mask.right -= dx; + gdi._mask.top -= dy; + gdi._mask.bottom -= dy; + } } } |