src/video/cocoa/SDL_cocoawindow.m
changeset 6422 fd0ac1b56115
parent 6301 e8a69c5378e7
child 6426 38ed71d9ae5f
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Thu Sep 13 01:29:18 2012 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Thu Sep 13 01:43:53 2012 -0400
     1.3 @@ -822,6 +822,20 @@
     1.4  }
     1.5  
     1.6  void
     1.7 +Cocoa_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered)
     1.8 +{
     1.9 +    /* this message arrived in 10.6. You're out of luck on older OSes. */
    1.10 +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
    1.11 +    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    1.12 +    NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
    1.13 +    if ([nswindow respondsToSelector:@selector(setStyleMask:)]) {
    1.14 +        [nswindow setStyleMask:GetWindowStyle(window)];
    1.15 +    }
    1.16 +    [pool release];
    1.17 +#endif
    1.18 +}
    1.19 +
    1.20 +void
    1.21  Cocoa_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display, SDL_bool fullscreen)
    1.22  {
    1.23      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];