[vlc-commits] macosx: remove black borders in black ui mode when	aspect ratio is locked
    David Fuhrmann 
    git at videolan.org
       
    Mon Apr 16 11:09:12 CEST 2012
    
    
  
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon Apr 16 11:00:00 2012 +0200| [3aa0de6df1fefefa861e8f09f82dcc7d66375bea] | committer: David Fuhrmann
macosx: remove black borders in black ui mode when aspect ratio is locked
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3aa0de6df1fefefa861e8f09f82dcc7d66375bea
---
 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 18ea11c..47bea6e 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