Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
32369:b2447ebbcc01 | 32370:79b1264388b3 |
---|---|
91 | 91 |
92 static void check_events(void) | 92 static void check_events(void) |
93 { | 93 { |
94 int e = vo_x11_check_events(mDisplay); | 94 int e = vo_x11_check_events(mDisplay); |
95 | 95 |
96 if (!(e & VO_EVENT_RESIZE) && !(e & VO_EVENT_EXPOSE)) | 96 if (e & (VO_EVENT_RESIZE | VO_EVENT_MOVE)) |
97 return; | 97 set_window(); |
98 set_window(); | 98 if (e & (VO_EVENT_RESIZE | VO_EVENT_EXPOSE)) |
99 mDrawColorKey(); | 99 mDrawColorKey(); |
100 } | 100 } |
101 | 101 |
102 static void flip_page(void) | 102 static void flip_page(void) |
103 { | 103 { |
104 #ifdef SHOW_TIME | 104 #ifdef SHOW_TIME |