src/video/cocoa/SDL_cocoawindow.m
changeset 6681 5a0396a933b5
parent 6666 018f8019ce36
child 6755 af77e1a6faf0
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Wed Nov 21 23:00:06 2012 -0500
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Nov 18 15:45:12 2012 +0300
     1.3 @@ -731,6 +731,21 @@
     1.4  }
     1.5  
     1.6  void
     1.7 +Cocoa_SetWindowMinimumSize(_THIS, SDL_Window * window)
     1.8 +{
     1.9 +    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    1.10 +    SDL_WindowData *windata = (SDL_WindowData *) window->driverdata;
    1.11 +        
    1.12 +    NSSize minSize;
    1.13 +    minSize.width = window->min_w;
    1.14 +    minSize.height = window->min_h;
    1.15 +        
    1.16 +    [windata->nswindow setMinSize:minSize];
    1.17 +    
    1.18 +    [pool release];
    1.19 +}
    1.20 +
    1.21 +void
    1.22  Cocoa_ShowWindow(_THIS, SDL_Window * window)
    1.23  {
    1.24      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];