mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Put Surface argument first in Dialog paint methods
This is the convention that most classes stick to. The likely reason why Dialog didn't stick to the convention was to be able to provide a default value for this argument, but that feature wasn't very useful since every caller already had access to the default surface.
This commit is contained in:
@@ -84,8 +84,8 @@ bool SettingsDialog::exec() {
|
||||
|
||||
gmenu2x->drawTopBar(gmenu2x->s);
|
||||
//link icon
|
||||
drawTitleIcon(icon);
|
||||
writeTitle(text);
|
||||
drawTitleIcon(gmenu2x->s, icon);
|
||||
writeTitle(gmenu2x->s, text);
|
||||
|
||||
gmenu2x->drawBottomBar(gmenu2x->s);
|
||||
|
||||
@@ -119,7 +119,7 @@ bool SettingsDialog::exec() {
|
||||
gmenu2x->drawScrollBar(numRows, voices.size(), firstElement);
|
||||
|
||||
//description
|
||||
writeSubTitle(voices[sel]->getDescription());
|
||||
writeSubTitle(gmenu2x->s, voices[sel]->getDescription());
|
||||
|
||||
gmenu2x->s->flip();
|
||||
voices[sel]->handleTS(maxNameWidth + 15, iY, rowHeight);
|
||||
|
||||
Reference in New Issue
Block a user