mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 01:08:25 +00:00
Fix mistake in vertical scrolling in FF
svn-id: r22051
This commit is contained in:
parent
66cbf6c05d
commit
04efb67f21
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user