From 5ac3f5c8a7ed9010dabdd5fd5af3d899a8c7b6d0 Mon Sep 17 00:00:00 2001 From: satbaby Date: Thu, 22 Apr 2010 11:46:29 +0000 Subject: [PATCH] f-fix warning git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@551 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/widget/buttons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);