src/video/cocoa/SDL_cocoawindow.m
changeset 6681 5a0396a933b5
parent 6666 018f8019ce36
child 6755 af77e1a6faf0
--- a/src/video/cocoa/SDL_cocoawindow.m	Wed Nov 21 23:00:06 2012 -0500
+++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Nov 18 15:45:12 2012 +0300
@@ -731,6 +731,21 @@
 }
 
 void
+Cocoa_SetWindowMinimumSize(_THIS, SDL_Window * window)
+{
+    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+    SDL_WindowData *windata = (SDL_WindowData *) window->driverdata;
+        
+    NSSize minSize;
+    minSize.width = window->min_w;
+    minSize.height = window->min_h;
+        
+    [windata->nswindow setMinSize:minSize];
+    
+    [pool release];
+}
+
+void
 Cocoa_ShowWindow(_THIS, SDL_Window * window)
 {
     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];