[PATCH] comctl32/toolbar: Correctly draw disabled toolbar button which contains 32 bpp bitmap with alpha channel.

Ziqing Hui zhui at codeweavers.com
Tue Mar 10 01:21:03 CDT 2020


According to my tests, on v6 comctl32, here is the disabled toolbar button appearance in different situation:

* 32bpp with alpha channel: Grayscale (This is not supported before v6)
* 32bpp without alpha channel ("without alpha channel" means each pixel's alpha value is set to 0): Solid color
* not 32bpp (maybe 24bpp, 16bpp etc.): Solid color

This patch handle the first situation for wine.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=24784
Signed-off-by: Ziqing Hui <zhui at codeweavers.com>
---
 dlls/comctl32/toolbar.c | 37 ++++++++++++++++++++++++++++++++-----
 1 file changed, 32 insertions(+), 5 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-comctl32-toolbar-Correctly-draw-disabled-toolbar-but.patch
Type: text/x-patch
Size: 2844 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200310/8fe5d223/attachment.bin>


More information about the wine-devel mailing list