aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-04-17 00:34:21 +0000
committerTravis Howell2006-04-17 00:34:21 +0000
commit632185fb7eac718c46440fed654625535629aca3 (patch)
tree91364f1ab9e542dc0670f89a5396d1c6bc41f406
parente7716748ba964b1bf767df86227609ee49e444dc (diff)
downloadscummvm-rg350-632185fb7eac718c46440fed654625535629aca3.tar.gz
scummvm-rg350-632185fb7eac718c46440fed654625535629aca3.tar.bz2
scummvm-rg350-632185fb7eac718c46440fed654625535629aca3.zip
Fix vertical scrolling
svn-id: r21955
-rw-r--r--engines/simon/simon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp
index f614f4c514..dc8d56b685 100644
--- a/engines/simon/simon.cpp
+++ b/engines/simon/simon.cpp
@@ -2643,15 +2643,15 @@ void SimonEngine::scrollEvent() {
if (_scrollXMax == 0) {
if (_scrollFlag < 0) {
- memmove(dst + 8 * _screenWidth, dst, (_scrollHeight - 8) * _screenWidth);
+ memmove(dst + 8 * _screenWidth, dst, (_scrollWidth - 8) * _screenHeight);
} else {
- memmove(dst, dst + 8 * _screenWidth, (_scrollHeight - 8) * _screenWidth);
+ memmove(dst, dst + 8 * _screenWidth, (_scrollWidth - 8) * _screenHeight);
}
y = _scrollY - 8;
if (_scrollFlag > 0) {
- dst += (_scrollHeight - 8) * _screenWidth;
+ dst += (_screenHeight - 8) * _screenWidth;
y += 488;
}