vlc | branch: master | David Fuhrmann <[email protected]> | Wed Mar 
21 17:16:39 2012 +0100| [1cee2e3b66d9c3e814385740f04f7569fe4c9ea5] | committer: 
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.

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

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

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 17ae4e0..777a660 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -561,8 +561,6 @@ static void OpenglSwap(vlc_gl_t *gl)
     if (![[self window] isFullscreen])
     {
         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];
     }
 }

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to