src/video/cocoa/SDL_cocoawindow.m
changeset 6788 036f53f2f5aa
parent 6784 8fd20f04d5d9
child 6832 156e608ec4ef
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Mon Dec 31 11:07:46 2012 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Dec 31 12:15:25 2012 -0800
     1.3 @@ -740,7 +740,22 @@
     1.4      minSize.width = window->min_w;
     1.5      minSize.height = window->min_h;
     1.6          
     1.7 -    [windata->nswindow setMinSize:minSize];
     1.8 +    [windata->nswindow setContentMinSize:minSize];
     1.9 +    
    1.10 +    [pool release];
    1.11 +}
    1.12 +
    1.13 +void
    1.14 +Cocoa_SetWindowMaximumSize(_THIS, SDL_Window * window)
    1.15 +{
    1.16 +    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    1.17 +    SDL_WindowData *windata = (SDL_WindowData *) window->driverdata;
    1.18 +        
    1.19 +    NSSize maxSize;
    1.20 +    maxSize.width = window->max_w;
    1.21 +    maxSize.height = window->max_h;
    1.22 +        
    1.23 +    [windata->nswindow setContentMaxSize:maxSize];
    1.24      
    1.25      [pool release];
    1.26  }