diff options
author | Max Horn | 2003-07-01 15:21:51 +0000 |
---|---|---|
committer | Max Horn | 2003-07-01 15:21:51 +0000 |
commit | 4f91c49836a16d3c5e6334a8a8ff60d62c67bc3e (patch) | |
tree | 2e1a19e849a24803eff92942a54f0eef57991d6e /scumm/camera.cpp | |
parent | 89be032afd6b26555ccfbb6735ff362321468a5a (diff) | |
download | scummvm-rg350-4f91c49836a16d3c5e6334a8a8ff60d62c67bc3e.tar.gz scummvm-rg350-4f91c49836a16d3c5e6334a8a8ff60d62c67bc3e.tar.bz2 scummvm-rg350-4f91c49836a16d3c5e6334a8a8ff60d62c67bc3e.zip |
fix for when we scroll while text is being displayed (text used to leave traces behind in that case)
svn-id: r8688
Diffstat (limited to 'scumm/camera.cpp')
-rw-r--r-- | scumm/camera.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scumm/camera.cpp b/scumm/camera.cpp index f906aef20e..67df602705 100644 --- a/scumm/camera.cpp +++ b/scumm/camera.cpp @@ -336,6 +336,15 @@ void Scumm::cameraMoved() { #else 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; + } } void Scumm::panCameraTo(int x, int y) { |