Skip to content

Commit 0fc847a

Browse files
committed
Ozone: Entry ticker length correction
1 parent fc6b1b9 commit 0fc847a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

menu/drivers/ozone.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5887,7 +5887,7 @@ static void ozone_draw_entries(
58875887
if (use_smooth_ticker)
58885888
{
58895889
ticker_smooth.selected = entry_selected && (!(ozone->flags & OZONE_FLAG_CURSOR_IN_SIDEBAR));
5890-
ticker_smooth.field_width = entry_width - entry_padding - (10 * scale_factor) - ozone->dimensions.entry_icon_padding;
5890+
ticker_smooth.field_width = entry_width - entry_padding - ozone->dimensions.entry_icon_padding * 6;
58915891
ticker_smooth.src_str = entry_rich_label;
58925892
ticker_smooth.dst_str = rich_label;
58935893
ticker_smooth.dst_str_len = sizeof(rich_label);
@@ -5899,7 +5899,7 @@ static void ozone_draw_entries(
58995899
ticker.s = rich_label;
59005900
ticker.str = entry_rich_label;
59015901
ticker.selected = entry_selected && (!(ozone->flags & OZONE_FLAG_CURSOR_IN_SIDEBAR));
5902-
ticker.len = (entry_width - entry_padding - (10 * scale_factor) - ozone->dimensions.entry_icon_padding) / ozone->fonts.entries_label.glyph_width;
5902+
ticker.len = (entry_width - entry_padding - ozone->dimensions.entry_icon_padding) / ozone->fonts.entries_label.glyph_width;
59035903

59045904
gfx_animation_ticker(&ticker);
59055905
}

0 commit comments

Comments
 (0)