Commit 1e00c03f14dd30ace20e48fafdf7990835becbf9

Sam Lantinga 2014-06-04T10:56:17

Fixed Mac OS X build

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/cocoa/SDL_cocoamouse.m b/src/video/cocoa/SDL_cocoamouse.m
index 54dcb1c..a78fb25 100644
--- a/src/video/cocoa/SDL_cocoamouse.m
+++ b/src/video/cocoa/SDL_cocoamouse.m
@@ -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);
     }
 }