Mercurial > mplayer.hg
changeset 7056:ad9a06fc40f8
added forced window clearing for Xv, because on my setup (sawfish,
nvidia) there occasionally left a blue strip above the movie when
switching to fullscreen.
patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
author | arpi |
---|---|
date | Wed, 21 Aug 2002 21:23:26 +0000 |
parents | 5a6616a088f2 |
children | 9a69417e2e0f |
files | libvo/vo_xv.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_xv.c Wed Aug 21 20:44:29 2002 +0000 +++ b/libvo/vo_xv.c Wed Aug 21 21:23:26 2002 +0000 @@ -530,6 +530,12 @@ int e=vo_x11_check_events(mDisplay); if(e&VO_EVENT_RESIZE) { + if (vo_fs) { + e |= VO_EVENT_EXPOSE; + XClearWindow(mDisplay, vo_window); + XFlush(mDisplay); + } + XGetGeometry( mDisplay,vo_window,&mRoot,&drwX,&drwY,&vo_dwidth,&vo_dheight,&drwBorderWidth,&drwDepth ); drwX = drwY = 0; mp_msg(MSGT_VO,MSGL_V, "[xv] dx: %d dy: %d dw: %d dh: %d\n",drwX,drwY,vo_dwidth,vo_dheight );