mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
GUI: Make sure About dialog can scroll to top
Fixed an issue where scrolling up in the About dialog would stop before the top of the text, sometimes cropping parts of it.
This commit is contained in:
parent
0785fb6a73
commit
db6b2a11cc
@ -330,7 +330,7 @@ void AboutDialog::handleMouseWheel(int x, int y, int direction) {
|
||||
|
||||
int newScrollPos = _scrollPos + stepping;
|
||||
|
||||
if (_scrollPos < 0) {
|
||||
if (newScrollPos < 0) {
|
||||
_scrollPos = 0;
|
||||
} else if ((uint32)newScrollPos < _lines.size() * _lineHeight) {
|
||||
_scrollPos = newScrollPos;
|
||||
|
Loading…
x
Reference in New Issue
Block a user