Fixed Mac OS X build

This commit is contained in:
Sam Lantinga
2014-06-04 10:56:17 -07:00
parent a7fe260d58
commit 299869c965

View File

@@ -261,7 +261,7 @@ Cocoa_WarpMouseGlobal(int x, int y)
/* CGWarpMouseCursorPosition doesn't generate a window event, unlike our
* 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);
}
}