[MPlayer-cvslog] r28010 - trunk/libvo/vo_x11.c
reimar
subversion at mplayerhq.hu
Sun Nov 23 21:47:04 CET 2008
Author: reimar
Date: Sun Nov 23 21:47:04 2008
New Revision: 28010
Log:
Simplify vo_x11 check_events function
Modified:
trunk/libvo/vo_x11.c
Modified: trunk/libvo/vo_x11.c
==============================================================================
--- trunk/libvo/vo_x11.c (original)
+++ trunk/libvo/vo_x11.c Sun Nov 23 21:47:04 2008
@@ -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,
More information about the MPlayer-cvslog
mailing list