mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
(Ozone) Fix regressions on OSX - menu_input_mouse_state
cannot be called in ozone_init - menu driver init function too early for mouse input calls
This commit is contained in:
parent
a672cc13a9
commit
d6fe0ceab2
@ -162,9 +162,8 @@ static void *ozone_init(void **userdata, bool video_is_threaded)
|
||||
ozone->pending_message = NULL;
|
||||
ozone->show_cursor = false;
|
||||
|
||||
ozone->cursor_mode = false;
|
||||
ozone->cursor_x_old = menu_input_mouse_state(MENU_MOUSE_X_AXIS);
|
||||
ozone->cursor_y_old = menu_input_mouse_state(MENU_MOUSE_Y_AXIS);
|
||||
ozone->first_frame = true;
|
||||
ozone->cursor_mode = false;
|
||||
|
||||
ozone->sidebar_collapsed = false;
|
||||
ozone->animations.sidebar_text_alpha = 1.0f;
|
||||
@ -1409,6 +1408,13 @@ static void ozone_frame(void *data, video_frame_info_t *video_info)
|
||||
if (!ozone)
|
||||
return;
|
||||
|
||||
if (ozone->first_frame)
|
||||
{
|
||||
ozone->cursor_x_old = menu_input_mouse_state(MENU_MOUSE_X_AXIS);
|
||||
ozone->cursor_y_old = menu_input_mouse_state(MENU_MOUSE_Y_AXIS);
|
||||
ozone->first_frame = false;
|
||||
}
|
||||
|
||||
/* OSK Fade detection */
|
||||
if (draw_osk != draw_osk_old)
|
||||
{
|
||||
|
@ -242,6 +242,7 @@ struct ozone_handle
|
||||
bool selection_core_is_viewer;
|
||||
|
||||
bool is_db_manager_list;
|
||||
bool first_frame;
|
||||
};
|
||||
|
||||
/* If you change this struct, also
|
||||
|
Loading…
Reference in New Issue
Block a user