[MPlayer-cvslog] r31831 - trunk/libvo/vo_vdpau.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Jul 27 19:19:00 CEST 2010


On Tue, Jul 27, 2010 at 06:49:06PM +0200, cehoyos wrote:
> Author: cehoyos
> Date: Tue Jul 27 18:49:06 2010
> New Revision: 31831
> 
> Log:
> Don't allow black windows on top of VDPAU to shine through.
> 
> Modified:
>    trunk/libvo/vo_vdpau.c
> 
> Modified: trunk/libvo/vo_vdpau.c
> ==============================================================================
> --- trunk/libvo/vo_vdpau.c	Tue Jul 27 15:11:15 2010	(r31830)
> +++ trunk/libvo/vo_vdpau.c	Tue Jul 27 18:49:06 2010	(r31831)
> @@ -419,7 +419,8 @@ static int win_x11_init_vdpau_procs(void
>  static int win_x11_init_vdpau_flip_queue(void)
>  {
>      VdpStatus vdp_st;
> -    VdpColor  vdp_bg = { 0, 0, 0, 0 };
> +    // {0, 0, 0, 0} makes every black window on top shine through
> +    VdpColor vdp_bg = {0.01, 0.01, 0.01, 0};

And while I guess it does not really matter, I chose 3 different
value in my example because that should reduce the probability
of something using the same color by chance (these values have a
1:256 chance of matching a random gray color).
In particular, font antialiasing usually means that if you have
black-on-white or white-on-black text you'll usually see the
video through one or two pixels around every second letter or so.


More information about the MPlayer-cvslog mailing list