]> git.sesse.net Git - vlc/commitdiff
* modules/video_filter/logo.c: transparency fix by markfm.
authorGildas Bazin <gbazin@videolan.org>
Sun, 19 Sep 2004 15:36:08 +0000 (15:36 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sun, 19 Sep 2004 15:36:08 +0000 (15:36 +0000)
modules/video_filter/logo.c

index 0c2090927fb684f3f349c11e3b1809584371a50a..60db1c0ead7446aba18f8921c7cd2e7a395964fa 100644 (file)
@@ -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);
         }