mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 19:20:24 +00:00
Do early return in case get_chosen_screen returns NULL
This commit is contained in:
parent
58ebbdeada
commit
3427d08c34
@ -116,11 +116,9 @@ void apple_rarch_exited(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
apple = (cocoa_input_data_t*)input_driver_get_data();
|
apple = (cocoa_input_data_t*)input_driver_get_data();
|
||||||
if (!apple)
|
if (!apple || !screen)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
(void)screen;
|
|
||||||
|
|
||||||
/* Relative */
|
/* Relative */
|
||||||
apple->mouse_rel_x = event.deltaX;
|
apple->mouse_rel_x = event.deltaX;
|
||||||
apple->mouse_rel_y = event.deltaY;
|
apple->mouse_rel_y = event.deltaY;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user