[vlc-devel] commit: gui/macosx: Fix ugly flashes of video view when the splitviews are resized. ( Sebastien Zwickert )

git version control git at videolan.org
Mon Dec 28 16:09:13 CET 2009


vlc | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Sat Dec 26 00:37:12 2009 +0100| [9c21b7ec34ef07a4f4c6b5e9dc4625ad02456bfb] | committer: Pierre d'Herbemont 

gui/macosx: Fix ugly flashes of video view when the splitviews are resized.

Signed-off-by: Pierre d'Herbemont <pdherbemont at free.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9c21b7ec34ef07a4f4c6b5e9dc4625ad02456bfb
---

 modules/gui/macosx/voutgl.m |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/voutgl.m b/modules/gui/macosx/voutgl.m
index 7cf4992..d26001a 100644
--- a/modules/gui/macosx/voutgl.m
+++ b/modules/gui/macosx/voutgl.m
@@ -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
 
 /*****************************************************************************




More information about the vlc-devel mailing list