changeset 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 ac7cc5583145
files libvo/vo_xmga.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
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)