mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
#286, 288, 285, 242, 282, 296, 293
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@549 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 1ec1b2fb81
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-04-21 (Wed, 21 Apr 2010)
This commit is contained in:
@@ -29,9 +29,19 @@
|
||||
|
||||
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;
|
||||
frameBuffer->getIconSize(content[i].button, &iw, &ih);
|
||||
yy = y + (fh - ih)/2;
|
||||
frameBuffer->paintIcon(content[i].button, x + i * buttonwidth, yy);
|
||||
font->RenderString(x + i * buttonwidth + iw + 5, y + 19, buttonwidth - iw - 5, localemanager->getText(content[i].locale), COL_INFOBAR, 0, true); // UTF-8
|
||||
#else
|
||||
frameBuffer->paintIcon(content[i].button, x + i * buttonwidth, y);
|
||||
//FIXME why y+19 ??
|
||||
font->RenderString(x + i * buttonwidth + 20, y + 19, buttonwidth - 20, localemanager->getText(content[i].locale), COL_INFOBAR, 0, true); // UTF-8
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user