[vlc-commits] Revert "macosx: don' t let the video window get larger than the screen it is on (close #5875)"

Felix Paul Kühne git at videolan.org
Fri Mar 2 12:50:55 CET 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Mar  2 12:50:49 2012 +0100| [5d9ceb2953c62512800a3a922ce8171a445332bd] | committer: Felix Paul Kühne

Revert "macosx: don't let the video window get larger than the screen it is on (close #5875)"

This reverts commit 93b211422cf7fa0c7e61c355da2068e7e0e56a69.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d9ceb2953c62512800a3a922ce8171a445332bd
---

 modules/video_output/macosx.m |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 9dac6bf..1537325 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -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;



More information about the vlc-commits mailing list