src/video/cocoa/SDL_cocoamouse.m
changeset 5387 03c79d46bf5c
parent 5376 183ec2d4485c
child 5391 06b239f48b91
equal deleted inserted replaced
5386:762e67f81fc7 5387:03c79d46bf5c
    90 {
    90 {
    91     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    91     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    92 
    92 
    93     if (SDL_GetMouseFocus()) {
    93     if (SDL_GetMouseFocus()) {
    94         if (cursor) {
    94         if (cursor) {
       
    95             NSCursor *nscursor = (NSCursor *)cursor->driverdata;
       
    96 
       
    97             [nscursor set];
    95             [NSCursor unhide];
    98             [NSCursor unhide];
    96         } else {
    99         } else {
    97             [NSCursor hide];
   100             [NSCursor hide];
    98         }
   101         }
    99     }
   102     }