[PATCH] user32: Create a mask from alpha channel when loading a 32 bpp icon. (v4)

Dmitry Timoshkov dmitry at baikal.ru
Wed Aug 22 09:29:39 CDT 2018


Alex Henrie <alexhenrie24 at gmail.com> wrote:

> > +                        for (bit_off = 0; bit_off < 8; bit_off++, mask >>= 1, src += 4)
> > +                        {
> > +                            if (src[3] != 0xff && x + bit_off < bmi_width)
> > +                                *dst_byte |= mask;
> > +                        }
> 
> Does this mean that only fully transparent pixels are added to the
> mask?

Yes, that's correct.

> If so, why not include any pixel that is more than 50%
> transparent?

I have a test program that confirms this behaviour.

-- 
Dmitry.



More information about the wine-devel mailing list