# HG changeset patch # User reimar # Date 1227473224 0 # Node ID 3f4990a693c2ee07002396accbb965fd6843552e # Parent 806c541d03dd6c9dda539aab6cebbcc8d90c3e4d Simplify vo_x11 check_events function diff -r 806c541d03dd -r 3f4990a693c2 libvo/vo_x11.c --- a/libvo/vo_x11.c Sun Nov 23 20:39:15 2008 +0000 +++ b/libvo/vo_x11.c Sun Nov 23 20:47:04 2008 +0000 @@ -89,16 +89,11 @@ { int ret = vo_x11_check_events(mDisplay); - /* clear left over borders and redraw frame if we are paused */ - if (ret & VO_EVENT_EXPOSE && int_pause) - { + if ((ret & VO_EVENT_RESIZE) || (ret & VO_EVENT_EXPOSE)) vo_x11_clearwindow_part(mDisplay, vo_window, myximage->width, myximage->height, 0); + if (ret & VO_EVENT_EXPOSE && int_pause) flip_page(); - } else if ((ret & VO_EVENT_RESIZE) || (ret & VO_EVENT_EXPOSE)) - vo_x11_clearwindow_part(mDisplay, vo_window, myximage->width, - myximage->height, 0); - } static void draw_alpha_32(int x0, int y0, int w, int h, unsigned char *src,