From 76613d1810eec9f0f9fa94c2810e07bb588a04b5 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Sun, 23 Oct 2011 12:05:27 +0200 Subject: [PATCH] IconButton: removed unused local variable. --- src/iconbutton.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/iconbutton.cpp b/src/iconbutton.cpp index 6795b28..ed05a70 100644 --- a/src/iconbutton.cpp +++ b/src/iconbutton.cpp @@ -31,13 +31,13 @@ void IconButton::setPosition(int x, int y) { } void IconButton::paint() { - uint margin = labelMargin; - if (iconSurface == NULL || label == "") - margin = 0; - if (iconSurface != NULL) + if (iconSurface) { 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() {