(Ozone) Ensure the existence of values used in selection calculation

This commit is contained in:
sonninnos 2021-08-21 13:10:59 +03:00
parent 9e84c5c2c8
commit 7a6434ecb2

View File

@ -265,6 +265,9 @@ void ozone_update_scroll(ozone_handle_t *ozone, bool allow_animation, ozone_node
video_driver_get_size(NULL, &video_info_height);
if (!node)
return;
current_selection_middle_onscreen =
ozone->dimensions.header_height +
ozone->dimensions.entry_padding_vertical +