Throw around some QZ_UpdateCursor() calls to fix wrongly-shown system cursor. SDL-1.2
authorRyan C. Gordon
Sun, 01 Jan 2012 20:45:31 -0500
branchSDL-1.2
changeset 61505f0b3693ab60
parent 6149 57574a485acb
child 6151 331f27f01cdb
Throw around some QZ_UpdateCursor() calls to fix wrongly-shown system cursor.

Fixes Bugzilla #1339.
src/video/quartz/SDL_QuartzEvents.m
src/video/quartz/SDL_QuartzWM.m
     1.1 --- a/src/video/quartz/SDL_QuartzEvents.m	Mon Jan 02 00:48:56 2012 -0500
     1.2 +++ b/src/video/quartz/SDL_QuartzEvents.m	Sun Jan 01 20:45:31 2012 -0500
     1.3 @@ -721,6 +721,8 @@
     1.4          QZ_GetMouseLocation (this, &p);
     1.5          SDL_PrivateMouseMotion (0, 0, p.x, p.y);
     1.6      }
     1.7 +
     1.8 +    QZ_UpdateCursor(this);
     1.9  }
    1.10  
    1.11  void QZ_DoDeactivate (_THIS) {
     2.1 --- a/src/video/quartz/SDL_QuartzWM.m	Mon Jan 02 00:48:56 2012 -0500
     2.2 +++ b/src/video/quartz/SDL_QuartzWM.m	Sun Jan 01 20:45:31 2012 -0500
     2.3 @@ -436,6 +436,7 @@
     2.4              QZ_ChangeGrabState (this, QZ_DISABLE_GRAB);
     2.5          
     2.6          current_grab_mode = doGrab ? SDL_GRAB_ON : SDL_GRAB_OFF;
     2.7 +        QZ_UpdateCursor(this);
     2.8      }
     2.9  
    2.10      return current_grab_mode;