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

macosxd 2.0.0's 1 bug: fixed redraw issue within the time slider (close #6057)

parent c7f4fdf8
...@@ -703,7 +703,6 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -703,7 +703,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
[o_fspanel setStreamPos: f_updated andTime: o_time]; [o_fspanel setStreamPos: f_updated andTime: o_time];
vlc_object_release( p_input ); vlc_object_release( p_input );
} }
[self drawFancyGradientEffectForTimeSlider];
} }
- (IBAction)volumeAction:(id)sender - (IBAction)volumeAction:(id)sender
...@@ -984,9 +983,11 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -984,9 +983,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
if (dur == -1) { if (dur == -1) {
[o_time_sld setEnabled: NO]; [o_time_sld setEnabled: NO];
[o_time_sld setHidden: YES]; [o_time_sld setHidden: YES];
[o_time_sld_fancygradient_view setHidden: YES];
} else { } else {
[o_time_sld setEnabled: YES]; [o_time_sld setEnabled: YES];
[o_time_sld setHidden: NO]; [o_time_sld setHidden: NO];
[o_time_sld_fancygradient_view setHidden: NO];
} }
[o_time_fld setStringValue: o_time]; [o_time_fld setStringValue: o_time];
...@@ -1000,9 +1001,8 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1000,9 +1001,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
[o_time_fld setStringValue: @"00:00"]; [o_time_fld setStringValue: @"00:00"];
[o_time_sld setEnabled: NO]; [o_time_sld setEnabled: NO];
[o_time_sld setHidden: YES]; [o_time_sld setHidden: YES];
[o_time_sld_fancygradient_view setHidden: YES];
} }
[self performSelectorOnMainThread:@selector(drawFancyGradientEffectForTimeSlider) withObject:nil waitUntilDone:NO];
} }
- (void)updateVolumeSlider - (void)updateVolumeSlider
......
...@@ -681,6 +681,8 @@ void _drawFrameInRect(NSRect frameRect) ...@@ -681,6 +681,8 @@ void _drawFrameInRect(NSRect frameRect)
NSRect knobRect = [[self cell] knobRectFlipped:NO]; NSRect knobRect = [[self cell] knobRectFlipped:NO];
knobRect.origin.y+=1; knobRect.origin.y+=1;
[self drawKnobInRect: knobRect]; [self drawKnobInRect: knobRect];
[(VLCMainWindow *)[self window] drawFancyGradientEffectForTimeSlider];
} }
@end @end
......
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