vlc/vlc-2.0 | branch: master | David Fuhrmann <[email protected]> | 
Wed Mar 21 17:16:39 2012 +0100| [2ab590e6d6c4214be88643ab6388b565b054b1a9] | 
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.
(cherry picked from commit 1cee2e3b66d9c3e814385740f04f7569fe4c9ea5)

Signed-off-by: David Fuhrmann <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=2ab590e6d6c4214be88643ab6388b565b054b1a9
---

 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 d0fafcb..768410b 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