[vlc-commits] macosx: fixed round window corners when using the black UI mode (refs #5742 )

Felix Paul Kühne git at videolan.org
Sat Dec 31 03:52:03 CET 2011


vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Dec 30 20:29:57 2011 +0100| [bf9b3dd598479ad98960b53337496e53bf1eda35] | committer: Jean-Baptiste Kempf

macosx: fixed round window corners when using the black UI mode (refs #5742)
(cherry picked from commit c483088f7eeb5fdec26dd037b2370bcbf0e4f587)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=bf9b3dd598479ad98960b53337496e53bf1eda35
---

 modules/gui/macosx/MainWindow.m |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 5d2f197..8a2da1a 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -393,6 +393,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
         [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(windowResizedOrMoved:) name: NSWindowDidResizeNotification object: nil];
         [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(windowResizedOrMoved:) name: NSWindowDidMoveNotification object: nil];
 
+        [self setBackgroundColor: [NSColor clearColor]];
+        [self setOpaque: NO];
+
         NSRect winrect;
         CGFloat f_titleBarHeight = [o_titlebar_view frame].size.height;
         winrect = [self frame];



More information about the vlc-commits mailing list