From df62f1a3465a223ad8e229b35db874b8311ed946 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 13 Sep 2003 22:56:14 +0000 Subject: fix colors of YUY2 overlay blending CVS patchset: 5370 CVS date: 2003/09/13 22:56:14 --- src/video_out/alphablend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/video_out/alphablend.c b/src/video_out/alphablend.c index 794d602ae..3eb98adc8 100644 --- a/src/video_out/alphablend.c +++ b/src/video_out/alphablend.c @@ -1015,7 +1015,7 @@ void blend_yuy2 (uint8_t * dst_img, vo_overlay_t * img_overl, if (o && mask) { l = rlelen>>1; - if( x & 1 ) { + if( !((x_off+x) & 1) ) { *(((uint8_t *)&yuy2) + 0) = my_clut[clr].y; *(((uint8_t *)&yuy2) + 1) = my_clut[clr].cb; *(((uint8_t *)&yuy2) + 2) = my_clut[clr].y; -- cgit v1.2.3