Commit 2ab590e6 authored by David Fuhrmann's avatar David Fuhrmann

macosx vout: remove unneeded center when resizing the window

Note that the origin values can also be negative when we have our window
on a secondary screen.
(cherry picked from commit 1cee2e3b66d9c3e814385740f04f7569fe4c9ea5)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent 018c77f7
...@@ -561,8 +561,6 @@ static void OpenglSwap(vlc_gl_t *gl) ...@@ -561,8 +561,6 @@ static void OpenglSwap(vlc_gl_t *gl)
if (![[self window] isFullscreen]) if (![[self window] isFullscreen])
{ {
NSRect frame = [value rectValue]; NSRect frame = [value rectValue];
if (frame.origin.x <= 0.0 && frame.origin.y <= 0.0)
[[self window] center];
[[self window] setFrame:frame display:YES animate: YES]; [[self window] setFrame:frame display:YES animate: YES];
} }
} }
......
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