mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
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:
@@ -545,7 +545,7 @@ void CStringInput::paint(bool sms)
|
|||||||
icol_o = icol_w + (offset/2);
|
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;
|
int tmp_y = y+ hheight+ offset+ input_h+ offset;
|
||||||
if ((hint_1 != NONEXISTANT_LOCALE) || (hint_2 != NONEXISTANT_LOCALE))
|
if ((hint_1 != NONEXISTANT_LOCALE) || (hint_2 != NONEXISTANT_LOCALE))
|
||||||
|
@@ -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, 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);
|
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;
|
int tmp_y = y+ hheight+ offset+ input_h+ offset;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user