diff options
author | Travis Howell | 2006-04-20 07:01:55 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-20 07:01:55 +0000 |
commit | 04efb67f21f541bb743c0df4fd59b4c63dd2bb77 (patch) | |
tree | 30d2acbf4acff4b7a7d4c1559e009618a0b1f0f4 | |
parent | 66cbf6c05df0f06335cb19aa063f7a0272f0339d (diff) | |
download | scummvm-rg350-04efb67f21f541bb743c0df4fd59b4c63dd2bb77.tar.gz scummvm-rg350-04efb67f21f541bb743c0df4fd59b4c63dd2bb77.tar.bz2 scummvm-rg350-04efb67f21f541bb743c0df4fd59b4c63dd2bb77.zip |
Fix mistake in vertical scrolling in FF
svn-id: r22051
-rw-r--r-- | engines/simon/simon.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp index ca6f2f5728..f646288d78 100644 --- a/engines/simon/simon.cpp +++ b/engines/simon/simon.cpp @@ -2632,16 +2632,17 @@ void SimonEngine::scrollEvent() { uint x, y; if (_scrollXMax == 0) { + uint screenSize = 8 * _screenWidth; if (_scrollFlag < 0) { - memmove(dst + 8 * _screenWidth, dst, (_scrollWidth - 8) * _screenHeight); + memmove(dst + screenSize, dst, _scrollWidth * _screenHeight - screenSize); } else { - memmove(dst, dst + 8 * _screenWidth, (_scrollWidth - 8) * _screenHeight); + memmove(dst, dst + screenSize, _scrollWidth * _screenHeight - screenSize); } y = _scrollY - 8; if (_scrollFlag > 0) { - dst += (_screenHeight - 8) * _screenWidth; + dst += _screenHeight * _screenWidth - screenSize; y += 488; } |