[vlc-devel] commit: vout_macosx: Backport 9c21b7ec34ef07a4f4c6b5e9dc4625ad02456bfb. ( Suppress flashes in Split Views). (Pierre d'Herbemont )
git version control
git at videolan.org
Mon Jan 4 23:48:22 CET 2010
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Mon Jan 4 12:14:55 2010 +0100| [c2fed7e05a0e7820cd312290da037b8a68d1b6be] | committer: Pierre d'Herbemont
vout_macosx: Backport 9c21b7ec34ef07a4f4c6b5e9dc4625ad02456bfb. (Suppress flashes in Split Views).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c2fed7e05a0e7820cd312290da037b8a68d1b6be
---
modules/video_output/macosx.m | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index ce341f9..0730035 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -476,6 +476,17 @@ static void OpenglSwap(vout_opengl_t *gl)
[self unlockgl];
}
+- (void)renewGState
+{
+ NSWindow *window = [self window];
+
+ // Remove flashes with splitter view.
+ if ([window respondsToSelector:@selector(disableScreenUpdatesUntilFlush)])
+ [window disableScreenUpdatesUntilFlush];
+
+ [super renewGState];
+}
+
- (BOOL)mouseDownCanMoveWindow
{
return YES;
More information about the vlc-devel
mailing list