Fix mistake in vertical scrolling in FF

svn-id: r22051
This commit is contained in:
Travis Howell 2006-04-20 07:01:55 +00:00
parent 66cbf6c05d
commit 04efb67f21

View File

@ -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;
}