~vcs-imports/libsdl/trunk

« back to all changes in this revision

Viewing changes to src/video/cocoa/SDL_cocoamouse.m

  • Committer: slouken
  • Date: 2010-01-21 06:21:52 UTC
  • Revision ID: svn-v4:c70aab31-4412-0410-b14c-859654838e24:trunk/SDL:5525
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
            if (point.x < 0 || point.x >= candidate->w ||
77
77
                point.y < 0 || point.y >= candidate->h) {
78
78
                /* The mouse is out of this fullscreen display */
79
 
                if (mouse->focus == candidate->id) {
 
79
                if (mouse->focus == candidate) {
80
80
                    SDL_SetMouseFocus(data->mouse, 0);
81
81
                }
82
82
            } else {
91
91
    }
92
92
 
93
93
    /* Set the focus appropriately */
94
 
    if (mouse->focus != window->id) {
95
 
        SDL_SetMouseFocus(data->mouse, window->id);
 
94
    if (mouse->focus != window) {
 
95
        SDL_SetMouseFocus(data->mouse, window);
96
96
    }
97
97
 
98
98
    switch ([event type]) {