mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Don't pass screen coordinates to drawScrollBar()
The scroll bar always spans the content area of the screen: the position and height depend only on the theme and not on who is drawing it. Note that the coordinates passed were wrong in most cases, so this commit fixes the scroll bar positioning for several dialogs.
This commit is contained in:
@@ -122,9 +122,7 @@ bool SettingsDialog::exec() {
|
||||
}
|
||||
gmenu2x->s->clearClipRect();
|
||||
|
||||
gmenu2x->drawScrollBar(
|
||||
numRows, voices.size(), firstElement, clipRect.y + 1, clipRect.h
|
||||
);
|
||||
gmenu2x->drawScrollBar(numRows, voices.size(), firstElement);
|
||||
|
||||
//description
|
||||
writeSubTitle(voices[sel]->getDescription());
|
||||
|
||||
Reference in New Issue
Block a user