From 04efb67f21f541bb743c0df4fd59b4c63dd2bb77 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Thu, 20 Apr 2006 07:01:55 +0000 Subject: Fix mistake in vertical scrolling in FF svn-id: r22051 --- engines/simon/simon.cpp | 7 ++++--- 1 file 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; } -- cgit v1.2.3