3 Mar
2026
3 Mar
'26
4:08 a.m.
All the pixels of internal bitmap is 0xffffff
How can you assume the pixels of the internal bitmap are 0xffffff? What if it contains other values?
`*pixel = ((r + 0xff - alpha) << 16) | ((g + 0xff - alpha) << 8) | (b + 0xff - alpha);`
I don't understand this formula. Shouldn't alpha blending a premultiplied-alpha image using something like the following? $$C_{out} = C_{src} + (1 - A_{src}) \times C_{dst}$$ -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9348#note_131081