Ozone: Entry ticker length correction
This commit is contained in:
parent
fc6b1b9fab
commit
0fc847a176
|
@ -5887,7 +5887,7 @@ border_iterate:
|
||||||
if (use_smooth_ticker)
|
if (use_smooth_ticker)
|
||||||
{
|
{
|
||||||
ticker_smooth.selected = entry_selected && (!(ozone->flags & OZONE_FLAG_CURSOR_IN_SIDEBAR));
|
ticker_smooth.selected = entry_selected && (!(ozone->flags & OZONE_FLAG_CURSOR_IN_SIDEBAR));
|
||||||
ticker_smooth.field_width = entry_width - entry_padding - (10 * scale_factor) - ozone->dimensions.entry_icon_padding;
|
ticker_smooth.field_width = entry_width - entry_padding - ozone->dimensions.entry_icon_padding * 6;
|
||||||
ticker_smooth.src_str = entry_rich_label;
|
ticker_smooth.src_str = entry_rich_label;
|
||||||
ticker_smooth.dst_str = rich_label;
|
ticker_smooth.dst_str = rich_label;
|
||||||
ticker_smooth.dst_str_len = sizeof(rich_label);
|
ticker_smooth.dst_str_len = sizeof(rich_label);
|
||||||
|
@ -5899,7 +5899,7 @@ border_iterate:
|
||||||
ticker.s = rich_label;
|
ticker.s = rich_label;
|
||||||
ticker.str = entry_rich_label;
|
ticker.str = entry_rich_label;
|
||||||
ticker.selected = entry_selected && (!(ozone->flags & OZONE_FLAG_CURSOR_IN_SIDEBAR));
|
ticker.selected = entry_selected && (!(ozone->flags & OZONE_FLAG_CURSOR_IN_SIDEBAR));
|
||||||
ticker.len = (entry_width - entry_padding - (10 * scale_factor) - ozone->dimensions.entry_icon_padding) / ozone->fonts.entries_label.glyph_width;
|
ticker.len = (entry_width - entry_padding - ozone->dimensions.entry_icon_padding) / ozone->fonts.entries_label.glyph_width;
|
||||||
|
|
||||||
gfx_animation_ticker(&ticker);
|
gfx_animation_ticker(&ticker);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue