[MPlayer-cvslog] r33508 - in trunk/libvo: vo_x11.c vo_xv.c
iive
subversion at mplayerhq.hu
Sat May 28 13:08:49 CEST 2011
Author: iive
Date: Sat May 28 13:08:48 2011
New Revision: 33508
Log:
Fix vo_x11/xv window background clearing.
Pass the correct vo_fs parameter to vo_x11_clearwindow_part().
It makes it calculate correctly the areas outside the image
that have to be cleared.
Modified:
trunk/libvo/vo_x11.c
trunk/libvo/vo_xv.c
Modified: trunk/libvo/vo_x11.c
==============================================================================
--- trunk/libvo/vo_x11.c Sat May 28 12:27:31 2011 (r33507)
+++ trunk/libvo/vo_x11.c Sat May 28 13:08:48 2011 (r33508)
@@ -105,7 +105,7 @@ static void check_events(void)
vo_x11_clearwindow(mDisplay, vo_window);
else if (ret & VO_EVENT_EXPOSE)
vo_x11_clearwindow_part(mDisplay, vo_window, myximage->width,
- myximage->height, 0);
+ myximage->height, vo_fs);
if (ret & VO_EVENT_EXPOSE && int_pause)
flip_page();
}
Modified: trunk/libvo/vo_xv.c
==============================================================================
--- trunk/libvo/vo_xv.c Sat May 28 12:27:31 2011 (r33507)
+++ trunk/libvo/vo_xv.c Sat May 28 13:08:48 2011 (r33508)
@@ -168,7 +168,7 @@ static void deallocate_xvimage(int foo);
static void resize(void)
{
calc_src_dst_rects(image_width, image_height, &src_rect, &dst_rect, NULL, NULL);
- vo_x11_clearwindow_part(mDisplay, vo_window, dst_rect.width, dst_rect.height, 1);
+ vo_x11_clearwindow_part(mDisplay, vo_window, dst_rect.width, dst_rect.height, vo_fs);
vo_xv_draw_colorkey(dst_rect.left, dst_rect.top, dst_rect.width, dst_rect.height);
}
More information about the MPlayer-cvslog
mailing list