[rgba_trans_p] fix brown-bagger; this was broken for all a with bits 8..23

pull/1813/head
nick black 3 years ago
parent 93fd4515e7
commit ac93b7b6f4
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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;
}

Loading…
Cancel
Save