Mercurial > mplayer.hg
changeset 33420:ab72da1e2a28
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.
author | iive |
---|---|
date | Sat, 28 May 2011 11:08:48 +0000 |
parents | 4f5becd31212 |
children | f10754220d42 |
files | libvo/vo_x11.c libvo/vo_xv.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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(); }
--- 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); }