mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 18:56:17 +02:00
IconButton: removed unused local variable.
This commit is contained in:
parent
55cabcea49
commit
76613d1810
@ -31,13 +31,13 @@ void IconButton::setPosition(int x, int y) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void IconButton::paint() {
|
void IconButton::paint() {
|
||||||
uint margin = labelMargin;
|
if (iconSurface) {
|
||||||
if (iconSurface == NULL || label == "")
|
|
||||||
margin = 0;
|
|
||||||
if (iconSurface != NULL)
|
|
||||||
iconSurface->blit(gmenu2x->s,iconRect);
|
iconSurface->blit(gmenu2x->s,iconRect);
|
||||||
if (label != "")
|
}
|
||||||
gmenu2x->s->write(gmenu2x->font, label, labelRect.x, labelRect.y, labelHAlign, labelVAlign);
|
if (label != "") {
|
||||||
|
gmenu2x->s->write(gmenu2x->font, label, labelRect.x, labelRect.y,
|
||||||
|
labelHAlign, labelVAlign);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IconButton::paintHover() {
|
bool IconButton::paintHover() {
|
||||||
|
Loading…
Reference in New Issue
Block a user