[vlc-commits] macosx: fixed round window corners when using the black UI mode (refs #5742 )
Felix Paul Kühne
git at videolan.org
Fri Dec 30 20:30:19 CET 2011
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Dec 30 20:29:57 2011 +0100| [c483088f7eeb5fdec26dd037b2370bcbf0e4f587] | committer: Felix Paul Kühne
macosx: fixed round window corners when using the black UI mode (refs #5742)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c483088f7eeb5fdec26dd037b2370bcbf0e4f587
---
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 56c41ad..ad54d95 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