Commit 6576cab
Ignore undefined all-zero alpha data for 32-bit icons without mask
On Windows, GetDIBits() may return undefined alpha bytes for 32-bit
BI_RGB bitmaps, commonly resulting in all-zero alpha even for fully
opaque images.
When icon mask data is missing, this caused opaque icons to be
incorrectly treated as fully transparent.
Reject all-zero alpha data and only replace empty mask data when the
alpha channel contains meaningful (non-opaque, non-zero) values.1 parent 7f413b7 commit 6576cab
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3142 | 3142 | | |
3143 | 3143 | | |
3144 | 3144 | | |
| 3145 | + | |
3145 | 3146 | | |
3146 | 3147 | | |
3147 | 3148 | | |
| 3149 | + | |
3148 | 3150 | | |
3149 | 3151 | | |
3150 | | - | |
| 3152 | + | |
3151 | 3153 | | |
3152 | 3154 | | |
3153 | 3155 | | |
| |||
0 commit comments