vlc | branch: master | Felix Paul Kühne <[email protected]> | Sun Feb 19 22:39:29 2012 +0100| [e7d046167a65779191a10ca4a615649874d9d03d] | committer: Felix Paul Kühne
macosxd 2.0.0's 1 bug: fixed redraw issue within the time slider (close #6057) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e7d046167a65779191a10ca4a615649874d9d03d --- modules/gui/macosx/MainWindow.m | 6 +++--- modules/gui/macosx/misc.m | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m index 33011d0..36c3bc6 100644 --- a/modules/gui/macosx/MainWindow.m +++ b/modules/gui/macosx/MainWindow.m @@ -703,7 +703,6 @@ static VLCMainWindow *_o_sharedInstance = nil; [o_fspanel setStreamPos: f_updated andTime: o_time]; vlc_object_release( p_input ); } - [self drawFancyGradientEffectForTimeSlider]; } - (IBAction)volumeAction:(id)sender @@ -984,9 +983,11 @@ static VLCMainWindow *_o_sharedInstance = nil; if (dur == -1) { [o_time_sld setEnabled: NO]; [o_time_sld setHidden: YES]; + [o_time_sld_fancygradient_view setHidden: YES]; } else { [o_time_sld setEnabled: YES]; [o_time_sld setHidden: NO]; + [o_time_sld_fancygradient_view setHidden: NO]; } [o_time_fld setStringValue: o_time]; @@ -1000,9 +1001,8 @@ static VLCMainWindow *_o_sharedInstance = nil; [o_time_fld setStringValue: @"00:00"]; [o_time_sld setEnabled: NO]; [o_time_sld setHidden: YES]; + [o_time_sld_fancygradient_view setHidden: YES]; } - - [self performSelectorOnMainThread:@selector(drawFancyGradientEffectForTimeSlider) withObject:nil waitUntilDone:NO]; } - (void)updateVolumeSlider diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m index 34fa00e..c9a8533 100644 --- a/modules/gui/macosx/misc.m +++ b/modules/gui/macosx/misc.m @@ -681,6 +681,8 @@ void _drawFrameInRect(NSRect frameRect) NSRect knobRect = [[self cell] knobRectFlipped:NO]; knobRect.origin.y+=1; [self drawKnobInRect: knobRect]; + + [(VLCMainWindow *)[self window] drawFancyGradientEffectForTimeSlider]; } @end _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
