From: Gildas Bazin Date: Sun, 19 Sep 2004 15:36:08 +0000 (+0000) Subject: * modules/video_filter/logo.c: transparency fix by markfm. X-Git-Tag: 0.8.0~378 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a782a30580aaf28c5d47914418672f2916571946;p=vlc * modules/video_filter/logo.c: transparency fix by markfm. --- diff --git a/modules/video_filter/logo.c b/modules/video_filter/logo.c index 0c2090927f..60db1c0ead 100644 --- a/modules/video_filter/logo.c +++ b/modules/video_filter/logo.c @@ -185,7 +185,7 @@ static picture_t *LoadPNG( vlc_object_t *p_this ) p_pic->p[V_PLANE].p_pixels[i_offset] = (p[0] * 439L - p[1] * 368 - p[2] * 71)/1000 + 128; p_pic->p[A_PLANE].p_pixels[i_offset] = - b_alpha ? (p[3] * i_trans) / 255 : 255; + b_alpha ? (p[3] * i_trans) / 255 : i_trans; p += (b_alpha ? 4 : 3); }