Commit 5d9ceb29 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

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

This reverts commit 93b21142.
parent 251eeba2
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment