1
0
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:
Maarten ter Huurne
2013-08-14 10:49:09 +02:00
parent ea85b10d31
commit b18e3fa6a8
8 changed files with 20 additions and 22 deletions

View File

@@ -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());