mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
fix center txt
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@664 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 1593513c1f
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-07-14 (Wed, 14 Jul 2010)
Origin message was:
------------------
-fix center txt
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@664 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -31,8 +31,12 @@ void paintButtons(CFrameBuffer * const frameBuffer, Font * const font, const CLo
|
||||
{
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
{
|
||||
int iw = 0, ih = 0;
|
||||
int fh = font->getHeight();
|
||||
|
||||
frameBuffer->getIconSize(content[i].button, &iw, &ih);
|
||||
frameBuffer->paintIcon(content[i].button, x + i * buttonwidth, y);
|
||||
font->RenderString(x + i * buttonwidth + 20, y + 19, buttonwidth - 20, localemanager->getText(content[i].locale), COL_INFOBAR, 0, true); // UTF-8
|
||||
font->RenderString(x + i * buttonwidth + 20, y + fh-(fh-ih)/2, buttonwidth - 20, localemanager->getText(content[i].locale), COL_INFOBAR, 0, true); // UTF-8
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user