gui/macosx: Fix ugly flashes of video view when the splitviews are resized.
authorSebastien Zwickert <dilaroga@free.fr>
Fri, 25 Dec 2009 23:37:12 +0000 (00:37 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Mon, 28 Dec 2009 15:09:03 +0000 (16:09 +0100)
Signed-off-by: Pierre d'Herbemont <pdherbemont@free.fr>
modules/gui/macosx/voutgl.m

index 7cf4992..d26001a 100644 (file)
@@ -503,6 +503,18 @@ static void Unlock( vout_thread_t * p_vout )
     Unlock( p_vout );
 }
 
+- (void) renewGState
+{
+    NSWindow *window = [self window];
+       
+       if ([window respondsToSelector:@selector(disableScreenUpdatesUntilFlush)])
+       {
+               [window disableScreenUpdatesUntilFlush];
+       }
+       
+    [super renewGState];
+}
+
 @end
 
 /*****************************************************************************