diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-10-09 11:24:37 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:18:09 +0200 |
commit | 79f6a2c868e19145a9cd9a67d22b6956b55285fa (patch) | |
tree | 9bea486c45ab48753f0b758a2fcca0e4d0f9c95a /libvo | |
parent | 69d173dfbb53161c2c731acc52a421e480143c2c (diff) | |
download | mpv-79f6a2c868e19145a9cd9a67d22b6956b55285fa.tar.bz2 mpv-79f6a2c868e19145a9cd9a67d22b6956b55285fa.tar.xz |
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
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_xmga.c | 8 |
1 files 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) |