Commit 2f095928 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx: remove black borders in black ui mode when aspect ratio is locked

(cherry picked from commit 3aa0de6d)
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 654d89e8
......@@ -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;
}
......
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