Bug 47486 - Monochrome icons with {white, black} color table

Fabian Maurer dark.shadow4 at web.de
Fri Sep 10 21:23:04 CDT 2021


Hello,

this is about https://bugs.winehq.org/show_bug.cgi?id=47486

The program has a monochrome icon with white as the first entry in its color
table, which is forbidden according to the comment in the code:

> * Note : If the first color in the color table is white followed by
> *        black, we can't convert it to a monochrome DDB with
> *        SetDIBits, because black and white would be inverted.

But when the bitmap is loaded as color bitmap instead of monochrome icon, the
background is rendered white instead of transparent.
Is that comment still up to date, and if so, how should we deal with that
case?

Regards,
Fabian Maurer






More information about the wine-devel mailing list