mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
change getRenderWidth() default to UTF8
Origin commit data
------------------
Commit: 8b91cda918
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)
Origin message was:
------------------
- change getRenderWidth() default to UTF8
This commit is contained in:
@@ -179,7 +179,7 @@ CShellWindow::~CShellWindow()
|
||||
int iw, ih;
|
||||
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_OKAY, &iw, &ih);
|
||||
Font *font = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL];
|
||||
int b_width = font->getRenderWidth(g_Locale->getText(LOCALE_MESSAGEBOX_OK), true) + 36 + ih + (RADIUS_LARGE / 2);
|
||||
int b_width = font->getRenderWidth(g_Locale->getText(LOCALE_MESSAGEBOX_OK)) + 36 + ih + (RADIUS_LARGE / 2);
|
||||
int fh = font->getHeight();
|
||||
int b_height = std::max(fh, ih) + 8 + (RADIUS_LARGE / 2);
|
||||
int xpos = frameBuffer->getScreenWidth() - b_width;
|
||||
|
Reference in New Issue
Block a user