Fix mistake in vertical scrolling in FF
svn-id: r22051
This commit is contained in:
parent
66cbf6c05d
commit
04efb67f21
1 changed files with 4 additions and 3 deletions
|
@ -2632,16 +2632,17 @@ void SimonEngine::scrollEvent() {
|
||||||
uint x, y;
|
uint x, y;
|
||||||
|
|
||||||
if (_scrollXMax == 0) {
|
if (_scrollXMax == 0) {
|
||||||
|
uint screenSize = 8 * _screenWidth;
|
||||||
if (_scrollFlag < 0) {
|
if (_scrollFlag < 0) {
|
||||||
memmove(dst + 8 * _screenWidth, dst, (_scrollWidth - 8) * _screenHeight);
|
memmove(dst + screenSize, dst, _scrollWidth * _screenHeight - screenSize);
|
||||||
} else {
|
} else {
|
||||||
memmove(dst, dst + 8 * _screenWidth, (_scrollWidth - 8) * _screenHeight);
|
memmove(dst, dst + screenSize, _scrollWidth * _screenHeight - screenSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
y = _scrollY - 8;
|
y = _scrollY - 8;
|
||||||
|
|
||||||
if (_scrollFlag > 0) {
|
if (_scrollFlag > 0) {
|
||||||
dst += (_screenHeight - 8) * _screenWidth;
|
dst += _screenHeight * _screenWidth - screenSize;
|
||||||
y += 488;
|
y += 488;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue