Merge pull request #12868 from sonninnos/winraw-overlay-fix

(WINRAW) Fix crash when overlay is enabled
This commit is contained in:
Autechre 2021-08-24 16:49:30 +02:00 committed by GitHub
commit d3813dddb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{