[vlc-commits] macosx: fix fancy gradient view for nonembedded window
David Fuhrmann
git at videolan.org
Sat Apr 20 10:19:13 CEST 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Apr 18 17:51:11 2013 +0200| [2e4ecdd3e95d6b487fe40ba26d76f22283ad7651] | committer: David Fuhrmann
macosx: fix fancy gradient view for nonembedded window
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e4ecdd3e95d6b487fe40ba26d76f22283ad7651
---
modules/gui/macosx/misc.m | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m
index 62779b1..ff97f9f 100644
--- a/modules/gui/macosx/misc.m
+++ b/modules/gui/macosx/misc.m
@@ -489,8 +489,8 @@ void _drawFrameInRect(NSRect frameRect)
- (void)drawRect:(NSRect)rect
{
- [[[[VLCMain sharedInstance] mainWindow] controlsBar] drawFancyGradientEffectForTimeSlider];
- msleep( 10000 ); //wait for the gradient to draw completely
+ [[(VLCVideoWindowCommon *)[self window] controlsBar] drawFancyGradientEffectForTimeSlider];
+ msleep(10000); //wait for the gradient to draw completely
/* Draw default to make sure the slider behaves correctly */
[[NSGraphicsContext currentContext] saveGraphicsState];
More information about the vlc-commits
mailing list