stringinput: fix width of menutitle in dialogs

Origin commit data
------------------
Commit: 983e33f96d
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-03-09 (Sat, 09 Mar 2013)

Origin message was:
------------------
- stringinput: fix width of menutitle in dialogs
This commit is contained in:
vanhofen
2013-03-09 15:17:08 +01:00
parent 4fbc8895da
commit 5c6a1555e0
2 changed files with 2 additions and 2 deletions

View File

@@ -545,7 +545,7 @@ void CStringInput::paint(bool sms)
icol_o = icol_w + (offset/2);
}
g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+ (offset/2)+ icol_o, y+ hheight, width- (offset/2)- icol_o, head ? head : g_Locale->getText(name), COL_MENUHEAD, 0, true); // UTF-8
g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+ (offset/2)+ icol_o, y+ hheight, width- offset- icol_o, head ? head : g_Locale->getText(name), COL_MENUHEAD, 0, true); // UTF-8
int tmp_y = y+ hheight+ offset+ input_h+ offset;
if ((hint_1 != NONEXISTANT_LOCALE) || (hint_2 != NONEXISTANT_LOCALE))

View File

@@ -298,7 +298,7 @@ void CExtendedInput::paint()
frameBuffer->paintBoxRel(x, y, width, hheight, COL_MENUHEAD_PLUS_0, RADIUS_LARGE, CORNER_TOP);
frameBuffer->paintBoxRel(x, y + hheight, width, bheight, COL_MENUCONTENT_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);
g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+ (offset/2), y+ hheight, width- (offset/2), g_Locale->getText(name), COL_MENUHEAD, 0, true); // UTF-8
g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+ (offset/2), y+ hheight, width- offset, g_Locale->getText(name), COL_MENUHEAD, 0, true); // UTF-8
int tmp_y = y+ hheight+ offset+ input_h+ offset;