src/video/cocoa/SDL_cocoavideo.m
changeset 8295 56f7e38ff0bc
parent 8149 681eb46b8ac4
child 8931 44d8a2f4b431
equal deleted inserted replaced
8294:7371078ee876 8295:56f7e38ff0bc
   146 
   146 
   147 
   147 
   148 int
   148 int
   149 Cocoa_VideoInit(_THIS)
   149 Cocoa_VideoInit(_THIS)
   150 {
   150 {
       
   151     SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
       
   152 
   151     Cocoa_InitModes(_this);
   153     Cocoa_InitModes(_this);
   152     Cocoa_InitKeyboard(_this);
   154     Cocoa_InitKeyboard(_this);
   153     Cocoa_InitMouse(_this);
   155     Cocoa_InitMouse(_this);
       
   156 
       
   157     const char *hint = SDL_GetHint(SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES);
       
   158     data->allow_spaces = ( (data->osversion >= 0x1070) && (!hint || (*hint != '0')) );
       
   159 
   154     return 0;
   160     return 0;
   155 }
   161 }
   156 
   162 
   157 void
   163 void
   158 Cocoa_VideoQuit(_THIS)
   164 Cocoa_VideoQuit(_THIS)