timerlist.cpp: Use the correct icon size in paintHead function

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1868 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 7d8651d1f7
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2011-11-19 (Sat, 19 Nov 2011)

Origin message was:
------------------
* timerlist.cpp: Use the correct icon size in paintHead function


git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1868 e54a6e83-5905-42d5-8d5c-058d10e6a962


------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2011-11-19 12:24:53 +00:00
parent 80c9259356
commit 64c124689a

View File

@@ -856,11 +856,12 @@ void CTimerList::paintHead()
g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+icol_w+15, y+theight+0, width - 45, g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+icol_w+15, y+theight+0, width - 45,
g_Locale->getText(LOCALE_TIMERLIST_NAME), COL_MENUHEAD, 0, true); // UTF-8 g_Locale->getText(LOCALE_TIMERLIST_NAME), COL_MENUHEAD, 0, true); // UTF-8
frameBuffer->getIconSize(NEUTRINO_ICON_TIMER, &icol_w, &icol_h);
//don't show info button on empty timerlist //don't show info button on empty timerlist
if (!timerlist.empty()) if (!timerlist.empty())
{
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_INFO, &icol_w, &icol_h);
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_INFO, x + width - icol_w - 10, y, theight); frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_INFO, x + width - icol_w - 10, y, theight);
}
} }
const struct button_label TimerListButtons[4] = const struct button_label TimerListButtons[4] =