Commit b494b2d8 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/VLC_app/VLCBrowsableVideoView.m: Don't draw the gradient if a vout is present.

parent f13a8acf
......@@ -184,7 +184,13 @@
}
- (void)drawRect:(NSRect)rect
{
{
if( [[[self layer] sublayers] count] )
{
/* Don't draw the empty view if we have a video output on screen */
[super drawRect:rect];
return;
}
NSColor * bottomGradient = [NSColor colorWithCalibratedWhite:0.10 alpha:1.0];
NSColor * topGradient = [NSColor colorWithCalibratedWhite:0.45 alpha:1.0];
NSGradient * gradient = [[NSGradient alloc] initWithStartingColor:bottomGradient endingColor:topGradient];
......
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