Mercurial > mplayer.hg
changeset 27976:3f4990a693c2
Simplify vo_x11 check_events function
author | reimar |
---|---|
date | Sun, 23 Nov 2008 20:47:04 +0000 |
parents | 806c541d03dd |
children | 452231ce45b9 |
files | libvo/vo_x11.c |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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,