[MPlayer-dev-eng] [PATCH] Fix windows background clearing.
Diego Biurrun
diego at biurrun.de
Thu May 26 01:44:16 CEST 2011
On Thu, May 26, 2011 at 12:16:47AM +0300, Ivan Kalvachev wrote:
>
> --- libvo/vo_xvmc.c (revision 33502)
> +++ libvo/vo_xvmc.c (working copy)
> @@ -666,11 +666,12 @@
> XMatchVisualInfo(mDisplay, mScreen, depth, TrueColor, &vinfo);
>
> - xswa.background_pixel = 0;
> - if (xv_ck_info.method == CK_METHOD_BACKGROUND)
> + xswa.border_pixel = 0;
> + xswamask = CWBorderPixel;
> + if (xv_ck_info.method == CK_METHOD_BACKGROUND){
> xswa.background_pixel = xv_colorkey;
> - xswa.border_pixel = 0;
> - xswamask = CWBackPixel | CWBorderPixel;
> + xswamask |= CWBackPixel;
> + }
>
> vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, d_width, d_height, flags,
> CopyFromParent, "xvmc", title);
> --- libvo/vo_xv.c (revision 33502)
> +++ libvo/vo_xv.c (working copy)
> @@ -240,13 +239,13 @@
> XMatchVisualInfo(mDisplay, mScreen, depth, TrueColor, &vinfo);
>
> - xswa.background_pixel = 0;
> + xswa.border_pixel = 0;
> + xswamask = CWBorderPixel;
> if (xv_ck_info.method == CK_METHOD_BACKGROUND)
> {
> xswa.background_pixel = xv_colorkey;
> + xswamask |= CWBackPixel;
> }
> - xswa.border_pixel = 0;
> - xswamask = CWBackPixel | CWBorderPixel;
>
> vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, vo_dwidth, vo_dheight,
> flags, CopyFromParent, "xv", title);
code duplication
Diego
More information about the MPlayer-dev-eng
mailing list