src/video/quartz/SDL_QuartzVideo.m
changeset 832 f003714db2f4
parent 823 d67e76f25874
child 852 2651b6b43840
--- a/src/video/quartz/SDL_QuartzVideo.m	Mon Feb 16 04:37:56 2004 +0000
+++ b/src/video/quartz/SDL_QuartzVideo.m	Mon Feb 16 21:06:10 2004 +0000
@@ -759,6 +759,7 @@
         if (!isCustom) {
             [ qz_window setContentSize:contentRect.size ];
             current->flags |= (SDL_NOFRAME|SDL_RESIZABLE) & mode_flags;
+            [ window_view setFrameSize:contentRect.size ];
         }
     }
 
@@ -770,7 +771,7 @@
         }
 
         window_view = [ [ NSView alloc ] initWithFrame:contentRect ];
-        [ window_view setAutoresizingMask: NSViewMinYMargin ];
+        [ window_view setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable ];
         [ [ qz_window contentView ] addSubview:window_view ];
         [ gl_context setView: window_view ];
         [ window_view release ];
@@ -785,7 +786,7 @@
         if (window_view == nil) {
         
             window_view = [ [ NSQuickDrawView alloc ] initWithFrame:contentRect ];
-            [ window_view setAutoresizingMask: NSViewMinYMargin ];
+            [ window_view setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable ];
             [ [ qz_window contentView ] addSubview:window_view ];
             [ window_view release ];
             [ qz_window makeKeyAndOrderFront:nil ];