From 79f6a2c868e19145a9cd9a67d22b6956b55285fa Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 9 Oct 2010 11:24:37 +0000 Subject: vo_xmga: fix event handling Fix xmga event handling: Reconfigure hardware on move and resize, redraw colorkey on resize and expose. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32456 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xmga.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c index a9e8282d53..49e23b8e0e 100644 --- a/libvo/vo_xmga.c +++ b/libvo/vo_xmga.c @@ -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) -- cgit v1.2.3