Browse Source

Fixed Mac OS X build

Sam Lantinga 11 years ago
parent
commit
1e00c03f14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/cocoa/SDL_cocoamouse.m

+ 1 - 1
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);
     }
 }