mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-18 00:18:22 +00:00
ozone: fix sublabels wrapping
This commit is contained in:
parent
f06d955996
commit
eb7797daa5
@ -248,8 +248,12 @@ void ozone_compute_entries_position(ozone_handle_t *ozone)
|
||||
{
|
||||
char *sublabel_str = menu_entry_get_sublabel(&entry);
|
||||
|
||||
int sublabel_max_width = video_info_width - (unsigned) ozone->dimensions.sidebar_width -
|
||||
int sublabel_max_width = video_info_width -
|
||||
entry_padding * 2 - ozone->dimensions.entry_icon_padding * 2;
|
||||
|
||||
if (ozone->depth == 1)
|
||||
entry_padding -= (unsigned) ozone->dimensions.sidebar_width;
|
||||
|
||||
word_wrap(sublabel_str, sublabel_str, sublabel_max_width / ozone->sublabel_font_glyph_width, false);
|
||||
|
||||
lines = ozone_count_lines(sublabel_str);
|
||||
|
Loading…
x
Reference in New Issue
Block a user