mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
(WINRAW) Fix crash when overlay is enabled
This commit is contained in:
parent
919954c5be
commit
957b71cfdc
@ -876,9 +876,12 @@ static int16_t winraw_input_state(
|
||||
if (!check_pos && idx > 0) /* idx = 0 has mouse fallback. */
|
||||
return 0;
|
||||
|
||||
x = mouse->x;
|
||||
y = mouse->y;
|
||||
pointer_down = mouse->btn_l;
|
||||
if (mouse)
|
||||
{
|
||||
x = mouse->x;
|
||||
y = mouse->y;
|
||||
pointer_down = mouse->btn_l;
|
||||
}
|
||||
|
||||
if (check_pos)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user