diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_x11.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index f05260bd2e..98538c5d5f 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -89,16 +89,11 @@ static void check_events(void) { 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, |