Commit 3aa0de6d authored by David Fuhrmann's avatar David Fuhrmann

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

parent 0d6fe822
......@@ -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