Commit 2b0c1ed0 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Jean-Baptiste Kempf

macosx: don't draw the time slider's 'fancy gradient effect' on Leopard, since...

macosx: don't draw the time slider's 'fancy gradient effect' on Leopard, since this leads to ugly artifacts due to the outdated CoreAnimation version
(cherry picked from commit cd4bf104f3db9527581865f44312dbdd696eab39)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b959bf6c
......@@ -82,7 +82,7 @@ enum {
NSApplicationPresentationAutoHideToolbar = (1 << 11)
};
/* the follow is just to fix warnings, not for implementation! */
/* the following is just to fix warnings, not for implementation! */
@interface NSWindow (IntroducedInLion)
- (void)setRestorable:(BOOL)b_value;
- (void)toggleFullScreen:(id)id_value;
......
......@@ -422,6 +422,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
if ([self styleMask] & NSResizableWindowMask)
[o_resize_view removeFromSuperviewWithoutNeedingDisplay];
if (OSX_LEOPARD)
[o_time_sld_fancygradient_view removeFromSuperviewWithoutNeedingDisplay];
}
#pragma mark -
......@@ -683,6 +686,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
return YES;
}
- (BOOL)isMainWindow
{
return YES;
}
- (void)setTitle:(NSString *)title
{
if (b_dark_interface)
......@@ -1019,6 +1027,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)drawFancyGradientEffectForTimeSlider
{
if (OSX_LEOPARD)
return;
NSAutoreleasePool * o_pool = [[NSAutoreleasePool alloc] init];
CGFloat f_value = [o_time_sld knobPosition];
if (f_value > 7.5)
......@@ -1150,6 +1161,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
if (b_fullscreen) {
[self recreateHideMouseTimer];
}
[super mouseMoved: theEvent];
}
- (void)recreateHideMouseTimer
......
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