diff libvo/vo_xmga.c @ 32370:79b1264388b3

Fix xmga event handling: Reconfigure hardware on move and resize, redraw colorkey on resize and expose.
author reimar
date Sat, 09 Oct 2010 11:24:37 +0000
parents b2447ebbcc01
children 96f96cb1ffc0
line wrap: on
line diff
--- a/libvo/vo_xmga.c	Sat Oct 09 11:20:51 2010 +0000
+++ b/libvo/vo_xmga.c	Sat Oct 09 11:24:37 2010 +0000
@@ -93,10 +93,10 @@
 {
     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)