src/video/cocoa/SDL_cocoavideo.m
changeset 8295 56f7e38ff0bc
parent 8149 681eb46b8ac4
child 8931 44d8a2f4b431
     1.1 --- a/src/video/cocoa/SDL_cocoavideo.m	Sun Mar 02 22:55:12 2014 -0500
     1.2 +++ b/src/video/cocoa/SDL_cocoavideo.m	Mon Mar 03 21:25:16 2014 -0500
     1.3 @@ -148,9 +148,15 @@
     1.4  int
     1.5  Cocoa_VideoInit(_THIS)
     1.6  {
     1.7 +    SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
     1.8 +
     1.9      Cocoa_InitModes(_this);
    1.10      Cocoa_InitKeyboard(_this);
    1.11      Cocoa_InitMouse(_this);
    1.12 +
    1.13 +    const char *hint = SDL_GetHint(SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES);
    1.14 +    data->allow_spaces = ( (data->osversion >= 0x1070) && (!hint || (*hint != '0')) );
    1.15 +
    1.16      return 0;
    1.17  }
    1.18