src/video/cocoa/SDL_cocoawindow.m
changeset 6788 036f53f2f5aa
parent 6784 8fd20f04d5d9
child 6832 156e608ec4ef
--- a/src/video/cocoa/SDL_cocoawindow.m	Mon Dec 31 11:07:46 2012 -0800
+++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Dec 31 12:15:25 2012 -0800
@@ -740,7 +740,22 @@
     minSize.width = window->min_w;
     minSize.height = window->min_h;
         
-    [windata->nswindow setMinSize:minSize];
+    [windata->nswindow setContentMinSize:minSize];
+    
+    [pool release];
+}
+
+void
+Cocoa_SetWindowMaximumSize(_THIS, SDL_Window * window)
+{
+    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+    SDL_WindowData *windata = (SDL_WindowData *) window->driverdata;
+        
+    NSSize maxSize;
+    maxSize.width = window->max_w;
+    maxSize.height = window->max_h;
+        
+    [windata->nswindow setContentMaxSize:maxSize];
     
     [pool release];
 }