aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo
diff options
context:
space:
mode:
authorGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-21 21:23:26 +0000
committerGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-21 21:23:26 +0000
commitf294139b30d1924f678488b251f276444b562dd5 (patch)
tree5d92832c91b3f7ae68077ee7a0e7560b9ff9139f /libvo
parent0f4a3c14c3774acb3cca332f530a96385617278a (diff)
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> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7057 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 5f23ec9206..96b2c68579 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -530,6 +530,12 @@ static void check_events(void)
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 );