[MPlayer-cvslog] r32456 - trunk/libvo/vo_xmga.c

reimar subversion at mplayerhq.hu
Sat Oct 9 13:24:37 CEST 2010


Author: reimar
Date: Sat Oct  9 13:24:37 2010
New Revision: 32456

Log:
Fix xmga event handling: Reconfigure hardware on move and resize,
redraw colorkey on resize and expose.

Modified:
   trunk/libvo/vo_xmga.c

Modified: trunk/libvo/vo_xmga.c
==============================================================================
--- trunk/libvo/vo_xmga.c	Sat Oct  9 13:20:51 2010	(r32455)
+++ trunk/libvo/vo_xmga.c	Sat Oct  9 13:24:37 2010	(r32456)
@@ -93,10 +93,10 @@ static void check_events(void)
 {
     int e = vo_x11_check_events(mDisplay);
 
-    if (!(e & VO_EVENT_RESIZE) && !(e & VO_EVENT_EXPOSE))
-        return;
-    set_window();
-    mDrawColorKey();
+    if (e & (VO_EVENT_RESIZE | VO_EVENT_MOVE))
+        set_window();
+    if (e & (VO_EVENT_RESIZE | VO_EVENT_EXPOSE))
+        mDrawColorKey();
 }
 
 static void flip_page(void)


More information about the MPlayer-cvslog mailing list