mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
- change getRenderWidth() default to UTF8
This commit is contained in:
@@ -66,7 +66,7 @@ void CExtendedInput::Init(void)
|
||||
|
||||
width = frameBuffer->getScreenWidth() / 100 * 45;
|
||||
|
||||
int tmp_w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getRenderWidth(g_Locale->getText(name), true); // UTF-8
|
||||
int tmp_w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getRenderWidth(g_Locale->getText(name));
|
||||
width = std::max(width, tmp_w + offset);
|
||||
|
||||
bheight = input_h + 2*offset;
|
||||
@@ -74,13 +74,13 @@ void CExtendedInput::Init(void)
|
||||
{
|
||||
if (hint_1 != NONEXISTANT_LOCALE)
|
||||
{
|
||||
tmp_w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO]->getRenderWidth(g_Locale->getText(hint_1), true);
|
||||
tmp_w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO]->getRenderWidth(g_Locale->getText(hint_1));
|
||||
width = std::max(width, tmp_w + 2*offset);
|
||||
bheight += iheight;
|
||||
}
|
||||
if (hint_2 != NONEXISTANT_LOCALE)
|
||||
{
|
||||
tmp_w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO]->getRenderWidth(g_Locale->getText(hint_2), true);
|
||||
tmp_w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO]->getRenderWidth(g_Locale->getText(hint_2));
|
||||
width = std::max(width, tmp_w + 2*offset);
|
||||
bheight += iheight;
|
||||
}
|
||||
|
Reference in New Issue
Block a user