mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
glui: subtract icon size from word wrap width if one is used
This commit is contained in:
parent
7a402b97ec
commit
9242cdeda9
@ -940,7 +940,9 @@ static void mui_render_label_value(mui_handle_t *mui, mui_node_t *node,
|
||||
/* Sublabel */
|
||||
if (menu_entry_get_sublabel(i, sublabel_str, sizeof(sublabel_str)))
|
||||
{
|
||||
word_wrap(sublabel_str, sublabel_str, (int)(usable_width / mui->glyph_width2), false);
|
||||
int icon_margin = texture_switch2 ? mui->icon_size : 0;
|
||||
|
||||
word_wrap(sublabel_str, sublabel_str, (int)((usable_width - icon_margin) / mui->glyph_width2), false);
|
||||
|
||||
menu_display_draw_text(mui->font2, sublabel_str,
|
||||
mui->margin + (texture_switch2 ? mui->icon_size : 0),
|
||||
|
Loading…
x
Reference in New Issue
Block a user