src/video/cocoa/SDL_cocoawindow.m
changeset 6788 036f53f2f5aa
parent 6784 8fd20f04d5d9
child 6832 156e608ec4ef
equal deleted inserted replaced
6787:95a4c5a5464c 6788:036f53f2f5aa
   738         
   738         
   739     NSSize minSize;
   739     NSSize minSize;
   740     minSize.width = window->min_w;
   740     minSize.width = window->min_w;
   741     minSize.height = window->min_h;
   741     minSize.height = window->min_h;
   742         
   742         
   743     [windata->nswindow setMinSize:minSize];
   743     [windata->nswindow setContentMinSize:minSize];
       
   744     
       
   745     [pool release];
       
   746 }
       
   747 
       
   748 void
       
   749 Cocoa_SetWindowMaximumSize(_THIS, SDL_Window * window)
       
   750 {
       
   751     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
       
   752     SDL_WindowData *windata = (SDL_WindowData *) window->driverdata;
       
   753         
       
   754     NSSize maxSize;
       
   755     maxSize.width = window->max_w;
       
   756     maxSize.height = window->max_h;
       
   757         
       
   758     [windata->nswindow setContentMaxSize:maxSize];
   744     
   759     
   745     [pool release];
   760     [pool release];
   746 }
   761 }
   747 
   762 
   748 void
   763 void