mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
Fixed Mac OS X build
This commit is contained in:
parent
45ed5ee494
commit
1e00c03f14
@ -261,7 +261,7 @@ Cocoa_WarpMouseGlobal(int x, int y)
|
|||||||
/* CGWarpMouseCursorPosition doesn't generate a window event, unlike our
|
/* CGWarpMouseCursorPosition doesn't generate a window event, unlike our
|
||||||
* other implementations' APIs.
|
* other implementations' APIs.
|
||||||
*/
|
*/
|
||||||
SDL_SendMouseMotion(mouse->focus, mouse->mouseID, 0, x - mouse->focus.x, y - mouse->focus.y);
|
SDL_SendMouseMotion(mouse->focus, mouse->mouseID, 0, x - mouse->focus->x, y - mouse->focus->y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user