mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
- change RenderString() default to UTF8
This commit is contained in:
@@ -161,7 +161,7 @@ void CMenuItem::paintItemCaption(const bool select_mode, const int &item_height,
|
||||
if (icon_w)
|
||||
_dx -= icon_frame_w + icon_w;
|
||||
}
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(name_start_x, y+ item_height, _dx- (name_start_x - x), left_text, item_color, 0, true); // UTF-8
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(name_start_x, y+ item_height, _dx- (name_start_x - x), left_text, item_color);
|
||||
|
||||
//right text
|
||||
if (right_text && (*right_text || right_bgcol))
|
||||
@@ -187,7 +187,7 @@ void CMenuItem::paintItemCaption(const bool select_mode, const int &item_height,
|
||||
}
|
||||
if (*right_text) {
|
||||
stringstartposOption -= (icon_w == 0 ? 0 : icon_w + icon_frame_w);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(stringstartposOption, y+item_height,dx- (stringstartposOption- x), right_text, item_color, 0, true);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(stringstartposOption, y+item_height,dx- (stringstartposOption- x), right_text, item_color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user