Commit cd4bf104 authored by Felix Paul Kühne's avatar Felix Paul Kühne

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
parent 8e3953e5
...@@ -82,7 +82,7 @@ enum { ...@@ -82,7 +82,7 @@ enum {
NSApplicationPresentationAutoHideToolbar = (1 << 11) 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) @interface NSWindow (IntroducedInLion)
- (void)setRestorable:(BOOL)b_value; - (void)setRestorable:(BOOL)b_value;
- (void)toggleFullScreen:(id)id_value; - (void)toggleFullScreen:(id)id_value;
......
...@@ -422,6 +422,9 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -422,6 +422,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
if ([self styleMask] & NSResizableWindowMask) if ([self styleMask] & NSResizableWindowMask)
[o_resize_view removeFromSuperviewWithoutNeedingDisplay]; [o_resize_view removeFromSuperviewWithoutNeedingDisplay];
if (OSX_LEOPARD)
[o_time_sld_fancygradient_view removeFromSuperviewWithoutNeedingDisplay];
} }
#pragma mark - #pragma mark -
...@@ -683,6 +686,11 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -683,6 +686,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
return YES; return YES;
} }
- (BOOL)isMainWindow
{
return YES;
}
- (void)setTitle:(NSString *)title - (void)setTitle:(NSString *)title
{ {
if (b_dark_interface) if (b_dark_interface)
...@@ -1019,6 +1027,9 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1019,6 +1027,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)drawFancyGradientEffectForTimeSlider - (void)drawFancyGradientEffectForTimeSlider
{ {
if (OSX_LEOPARD)
return;
NSAutoreleasePool * o_pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool * o_pool = [[NSAutoreleasePool alloc] init];
CGFloat f_value = [o_time_sld knobPosition]; CGFloat f_value = [o_time_sld knobPosition];
if (f_value > 7.5) if (f_value > 7.5)
...@@ -1150,6 +1161,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1150,6 +1161,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
if (b_fullscreen) { if (b_fullscreen) {
[self recreateHideMouseTimer]; [self recreateHideMouseTimer];
} }
[super mouseMoved: theEvent];
} }
- (void)recreateHideMouseTimer - (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