From ac93b7b6f4552a9fb2527dbb52b8dc6ee90094df Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 22 Jun 2021 09:56:29 -0400 Subject: [PATCH] [rgba_trans_p] fix brown-bagger; this was broken for all a with bits 8..23 --- src/lib/internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/internal.h b/src/lib/internal.h index 3c05fe1cb..b4499e046 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h @@ -1538,8 +1538,8 @@ rgba_trans_p(uint32_t p, uint32_t transcolor){ return true; } if(transcolor && - (ncpixel_r(p) == (transcolor & 0xff0000ull)) && - (ncpixel_g(p) == (transcolor & 0xff00ull)) && + (ncpixel_r(p) == (transcolor & 0xff0000ull) >> 16) && + (ncpixel_g(p) == (transcolor & 0xff00ull) >> 8) && (ncpixel_b(p) == (transcolor & 0xffull))){ return true; }