From 7b9764a7d4fcc8c4caeab48c2ce5d3f78a915991 Mon Sep 17 00:00:00 2001 From: Jehan Date: Tue, 14 Feb 2023 11:21:18 +0100 Subject: [PATCH] babl: LUT from 3bpp to 4bpp must add a fully opaque alpha. For instance, conversion from "RGB u8" to "RGBA u8". With previous code, the resulting color was right but the pixel was fully transparent. --- babl/babl-fish-path.c | 1 + 1 file changed, 1 insertion(+) diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index 26072d5..ed89590 100644 --- a/babl/babl-fish-path.c +++ b/babl/babl-fish-path.c @@ -250,6 +250,7 @@ static inline int _do_lut (uint32_t *lut, { uint32_t col = src[0]*256*256+src[1]*256+src[2]; *dst = lut[col]; + *dst |= 0xff000000; dst++; src+=3; } -- 2.30.2