diff --git a/src/gui/widget/buttons.cpp b/src/gui/widget/buttons.cpp index 03faa9edd..696970ca4 100644 --- a/src/gui/widget/buttons.cpp +++ b/src/gui/widget/buttons.cpp @@ -29,11 +29,11 @@ void paintButtons(CFrameBuffer * const frameBuffer, Font * const font, const CLocaleManager * const localemanager, const int x, const int y, const unsigned int buttonwidth, const unsigned int count, const struct button_label * const content) { - int fh = font->getHeight(); for (unsigned int i = 0; i < count; i++) { #if 0 int iw, ih, yy; + int fh = font->getHeight(); frameBuffer->getIconSize(content[i].button, &iw, &ih); yy = y + (fh - ih)/2; frameBuffer->paintIcon(content[i].button, x + i * buttonwidth, yy);