[vlc-commits] macosxd 2.0.0's 1 bug: fixed redraw issue within the time slider ( close #6057)
Felix Paul Kühne
git at videolan.org
Sun Feb 19 23:31:20 CET 2012
vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Feb 19 22:39:29 2012 +0100| [1b9bcedf3c89a3b026ac1e189c79519873676016] | committer: Jean-Baptiste Kempf
macosxd 2.0.0's 1 bug: fixed redraw issue within the time slider (close #6057)
(cherry picked from commit e7d046167a65779191a10ca4a615649874d9d03d)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=1b9bcedf3c89a3b026ac1e189c79519873676016
---
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 5d42e6a..2b02ded 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
More information about the vlc-commits
mailing list