diff src/video/cocoa/SDL_cocoamouse.m @ 3685:64ce267332c6

Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 21 Jan 2010 06:21:52 +0000
parents 59ff7a2beb57
children 3e69e077cb95
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoamouse.m	Thu Jan 21 05:49:41 2010 +0000
+++ b/src/video/cocoa/SDL_cocoamouse.m	Thu Jan 21 06:21:52 2010 +0000
@@ -76,7 +76,7 @@
             if (point.x < 0 || point.x >= candidate->w ||
                 point.y < 0 || point.y >= candidate->h) {
                 /* The mouse is out of this fullscreen display */
-                if (mouse->focus == candidate->id) {
+                if (mouse->focus == candidate) {
                     SDL_SetMouseFocus(data->mouse, 0);
                 }
             } else {
@@ -91,8 +91,8 @@
     }
 
     /* Set the focus appropriately */
-    if (mouse->focus != window->id) {
-        SDL_SetMouseFocus(data->mouse, window->id);
+    if (mouse->focus != window) {
+        SDL_SetMouseFocus(data->mouse, window);
     }
 
     switch ([event type]) {