mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
[rgba_trans_p] fix brown-bagger; this was broken for all a with bits 8..23
This commit is contained in:
parent
93fd4515e7
commit
ac93b7b6f4
@ -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…
x
Reference in New Issue
Block a user