]> git.sesse.net Git - vlc/commitdiff
macosx: fix fancy gradient view for nonembedded window
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 18 Apr 2013 15:51:11 +0000 (17:51 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 20 Apr 2013 06:51:36 +0000 (08:51 +0200)
modules/gui/macosx/misc.m

index 62779b18246b5f52a331b7dbb12366a68fe0dbe9..ff97f9f662a4d33acf79c7477a9c064eeebffc8c 100644 (file)
@@ -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];