[Bug 47018] Black transparent images

wine-bugs at winehq.org wine-bugs at winehq.org
Fri May 3 02:33:29 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=47018

--- Comment #19 from Dmitry Timoshkov <dmitry at baikal.ru> ---
Created attachment 64324
  --> https://bugs.winehq.org/attachment.cgi?id=64324
test app

The problem is caused by difference between user32 and comctl32 in the bitmap
painting performed by the static control implementation. Attached test app
contains 2 executables: one without the manifest, and another one with it.
Under Windows the executable without a manifest shows exactly the same ugly
not transparent image as seen under Wine. Executable with manifest draws a
transparent bitmaps image.

Replacing StretchBlt() by GdiAlphaBlend() makes the bitmap in question paint
correctly, but that breaks painting of other images. Probably comctl32's
"Static" implementation should detect whether and image has non-zero alpha
channel, and use GdiAlphaBlend in that case.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list