mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(Ozone) Add two TODO/FIXMEs
This commit is contained in:
parent
53356fe61a
commit
5684c72e35
@ -470,7 +470,12 @@ border_iterate:
|
|||||||
/* Old*/
|
/* Old*/
|
||||||
if (!ozone->cursor_in_sidebar_old)
|
if (!ozone->cursor_in_sidebar_old)
|
||||||
ozone_draw_cursor(ozone, video_info, (unsigned) ozone->dimensions.sidebar_width + x_offset + entry_padding + ozone->dimensions.spacer_3px,
|
ozone_draw_cursor(ozone, video_info, (unsigned) ozone->dimensions.sidebar_width + x_offset + entry_padding + ozone->dimensions.spacer_3px,
|
||||||
entry_width - ozone->dimensions.spacer_5px, button_height + ozone->dimensions.spacer_2px, old_selection_y + scroll_y + ozone->dimensions.spacer_1px, (1-ozone->animations.cursor_alpha) * alpha);
|
/* TODO/FIXME - undefined behavior reported by ASAN -
|
||||||
|
*-35.2358 is outside the range of representable values
|
||||||
|
of type 'unsigned int'
|
||||||
|
* */
|
||||||
|
entry_width - ozone->dimensions.spacer_5px,
|
||||||
|
button_height + ozone->dimensions.spacer_2px, old_selection_y + scroll_y + ozone->dimensions.spacer_1px, (1-ozone->animations.cursor_alpha) * alpha);
|
||||||
|
|
||||||
/* Icons + text */
|
/* Icons + text */
|
||||||
y = ozone->dimensions.header_height + ozone->dimensions.spacer_1px + ozone->dimensions.entry_padding_vertical;
|
y = ozone->dimensions.header_height + ozone->dimensions.spacer_1px + ozone->dimensions.entry_padding_vertical;
|
||||||
|
@ -254,6 +254,10 @@ void ozone_draw_sidebar(ozone_handle_t *ozone, video_frame_info_t *video_info)
|
|||||||
if (use_smooth_ticker)
|
if (use_smooth_ticker)
|
||||||
{
|
{
|
||||||
ticker_smooth.selected = selected;
|
ticker_smooth.selected = selected;
|
||||||
|
/* TODO/FIXME - undefined behavior reported by ASAN -
|
||||||
|
*-12.549 is outside the range of representable values
|
||||||
|
of type 'unsigned int'
|
||||||
|
* */
|
||||||
ticker_smooth.field_width = (entry_width - ozone->dimensions.sidebar_entry_icon_size - 40 * scale_factor);
|
ticker_smooth.field_width = (entry_width - ozone->dimensions.sidebar_entry_icon_size - 40 * scale_factor);
|
||||||
ticker_smooth.src_str = node->console_name;
|
ticker_smooth.src_str = node->console_name;
|
||||||
ticker_smooth.dst_str = console_title;
|
ticker_smooth.dst_str = console_title;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user