Commit c4eb40b4 authored by Marvin Scholz's avatar Marvin Scholz

macosx: Fix crash on 10.7 due to CGColor method

This fixes an issue where VLC would crash on 10.7 doe to usage of the
CGColor method on NSColor which was only introduce in 10.8, leading
to a crash on 10.7.
parent b99bc394
......@@ -394,10 +394,10 @@
- (void)injectBackgroundView
{
/* Setup the view */
NSColor *color = [NSColor colorWithCalibratedWhite:0.0 alpha:0.8];
CGColorRef color = CGColorCreateGenericGray(0.0, 0.8);
NSView *view = [[NSView alloc] initWithFrame:self.window.contentView.frame];
[view setWantsLayer:YES];
[view.layer setBackgroundColor:[color CGColor]];
[view.layer setBackgroundColor:color];
[view.layer setCornerRadius:8.0];
[view setAutoresizesSubviews:YES];
......
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