[MPlayer-dev-eng] [better-patch] x11, xv

Markus J.R. random at shell.dnload.com
Thu Jun 13 02:32:48 CEST 2002


Markus Rechberger wrote:

> Hello again :)
>
> The x11 and XV -wid size didn't fit - it always took the real video 
> size for -wid ..
> X11 didn't map the window again .. should be fixed now
>
> Markus Rechberger
>
>
>------------------------------------------------------------------------
>
>--- vo_x11_old.c	Thu Jun 13 02:13:43 2002
>+++ vo_x11.c	Thu Jun 13 02:14:55 2002
>@@ -333,6 +333,8 @@
>         XUnmapWindow( mDisplay,vo_window );
>         XChangeWindowAttributes( mDisplay,vo_window,xswamask,&xswa );
> 	XSelectInput( mDisplay,vo_window,StructureNotifyMask | KeyPressMask | PropertyChangeMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | ExposureMask );
>+	XGetGeometry( mDisplay,vo_window,&mRootWin,NULL,NULL,&vo_dwidth,&vo_dheight,NULL,NULL );
>+	XMapWindow( mDisplay,vo_window );
>        } else XSelectInput( mDisplay,vo_window,ExposureMask );
>     }
>     else
>
>
>------------------------------------------------------------------------
>
>--- vo_xv_old.c	Thu Jun 13 02:13:48 2002
>+++ vo_xv.c	Thu Jun 13 02:14:50 2002
>@@ -355,7 +355,6 @@
> #endif
>  flip_flag=flags&8;
>  num_buffers=vo_doublebuffering?NUM_BUFFERS:1;
>-
>    /* check image formats */
>      fo = XvListImageFormats(mDisplay, xv_port, (int*)&formats);
>      xv_format=0;
>@@ -429,6 +428,7 @@
>         XUnmapWindow( mDisplay,vo_window );
>         XChangeWindowAttributes( mDisplay,vo_window,xswamask,&xswa );
> 	XSelectInput( mDisplay,vo_window,StructureNotifyMask | KeyPressMask | PropertyChangeMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | ExposureMask );
>+	XGetGeometry( mDisplay,vo_window,&mRoot,&drwX,&drwY,&vo_dwidth,&vo_dheight,&drwBorderWidth,&drwDepth );
>         XMapWindow( mDisplay,vo_window );
>        } else { drwX=vo_dx; drwY=vo_dy; }
>     } else 
>@@ -488,7 +488,9 @@
> 
>      set_gamma_correction();
> 
>-     aspect(&vo_dwidth,&vo_dheight,A_NOZOOM);
>+     if ( !WinID ){
>+      aspect(&vo_dwidth,&vo_dheight,A_NOZOOM);
>+     }
>      if ( ( flags&1 )&&( !WinID ) )
>       {
>        aspect(&vo_dwidth,&vo_dheight,A_ZOOM);
>


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: x11_patch.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020613/2b536041/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xv_patch.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020613/2b536041/attachment.txt>


More information about the MPlayer-dev-eng mailing list