[vlc-commits] macosx: remove black borders in black ui mode when aspect ratio is locked
David Fuhrmann
git at videolan.org
Fri Apr 20 13:40:18 CEST 2012
vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon Apr 16 11:00:00 2012 +0200| [2f09592846d6b0e52ab1001c5853c65844bd722a] | committer: Felix Paul Kühne
macosx: remove black borders in black ui mode when aspect ratio is locked
(cherry picked from commit 3aa0de6df1fefefa861e8f09f82dcc7d66375bea)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=2f09592846d6b0e52ab1001c5853c65844bd722a
---
modules/gui/macosx/MainWindow.m | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index ee46352..6160264 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1085,6 +1085,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
NSRect contentRect = [videoWindow contentRectForFrameRect:videoWindowFrame];
float marginy = viewRect.origin.y + videoWindowFrame.size.height - contentRect.size.height;
float marginx = contentRect.size.width - viewRect.size.width;
+ if( b_dark_interface )
+ marginy += [o_titlebar_view frame].size.height;
proposedFrameSize.height = (proposedFrameSize.width - marginx) * nativeVideoSize.height / nativeVideoSize.width + marginy;
}
More information about the vlc-commits
mailing list