]> git.sesse.net Git - vlc/commitdiff
Revert "macosx: don't let the video window get larger than the screen it is on (close...
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 2 Mar 2012 11:50:49 +0000 (12:50 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 2 Mar 2012 11:50:49 +0000 (12:50 +0100)
This reverts commit 93b211422cf7fa0c7e61c355da2068e7e0e56a69.

modules/video_output/macosx.m

index 9dac6bfc2ce14abe62ee9aa720fbba479ec7d682..1537325f37b2875362eb21b7bfa71087d05cc005 100644 (file)
@@ -356,7 +356,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
             NSRect windowFrame = [o_window frame];
             NSRect glViewFrame = [sys->glView frame];
             NSSize windowMinSize = [o_window minSize];
-            NSSize windowMaxSize = [o_window constrainFrameRect: windowFrame toScreen: [o_window screen]].size;
 
             topleftbase.x = 0;
             topleftbase.y = windowFrame.size.height;
@@ -371,12 +370,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
             if (i_height < windowMinSize.height)
                 i_height = windowMinSize.height;
 
-            /* don't make the window than its screen */
-            if (i_width > windowMaxSize.width)
-                i_width = windowMaxSize.width;
-            if (i_height > windowMaxSize.height)
-                i_height = windowMaxSize.height;
-
             if( i_height != glViewFrame.size.height || i_width != glViewFrame.size.width )
             {
                 new_frame.size.width = windowFrame.size.width - glViewFrame.size.width + i_width;