src/video/quartz/SDL_QuartzVideo.m
changeset 876 9e84d106ec19
parent 852 2651b6b43840
child 934 af585d6efec8
equal deleted inserted replaced
875:c2ff9786fbba 876:9e84d106ec19
   203     current_grab_mode = SDL_GRAB_OFF;
   203     current_grab_mode = SDL_GRAB_OFF;
   204     cursor_should_be_visible    = YES;
   204     cursor_should_be_visible    = YES;
   205     cursor_visible              = YES;
   205     cursor_visible              = YES;
   206     current_mods = 0;
   206     current_mods = 0;
   207     
   207     
       
   208     if ( Gestalt(gestaltSystemVersion, &system_version) != noErr )
       
   209         system_version = 0;
       
   210 
   208     /* register for sleep notifications so wake from sleep generates SDL_VIDEOEXPOSE */
   211     /* register for sleep notifications so wake from sleep generates SDL_VIDEOEXPOSE */
   209     QZ_RegisterForSleepNotifications (this);
   212     QZ_RegisterForSleepNotifications (this);
   210     
   213     
   211     return 0;
   214     return 0;
   212 }
   215 }