# HG changeset patch # User iive # Date 1306580928 0 # Node ID ab72da1e2a2843acff64ad535444729f347dde80 # Parent 4f5becd31212ab53da9744ded78b0b7b7756dacd 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. diff -r 4f5becd31212 -r ab72da1e2a28 libvo/vo_x11.c --- a/libvo/vo_x11.c Sat May 28 10:27:31 2011 +0000 +++ b/libvo/vo_x11.c Sat May 28 11:08:48 2011 +0000 @@ -105,7 +105,7 @@ 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(); } diff -r 4f5becd31212 -r ab72da1e2a28 libvo/vo_xv.c --- a/libvo/vo_xv.c Sat May 28 10:27:31 2011 +0000 +++ b/libvo/vo_xv.c Sat May 28 11:08:48 2011 +0000 @@ -168,7 +168,7 @@ 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); }