[Bug 48631] Death to Spies: Moment of Truth demo renders text as a black squares

WineHQ Bugzilla wine-bugs at winehq.org
Wed Feb 19 17:21:19 CST 2020


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

Christian Costa <titan.costa at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |titan.costa at gmail.com

--- Comment #2 from Christian Costa <titan.costa at gmail.com> ---
I remember investigating this issue few years ago. It seemed
D3DXGetImageInfoFromFileInMemory should return D3DFMT_A8R8G8B8 instead of
D3DFMT_X8R8G8B8. I didn't find a clear way how TGA files are supposed to
advertise if an alpha channel is present or not for 32 bpp and how
windowscodecs.dll handles this.

Maybe there's something similar to a patch in wine-staging where
D3DFMT_A8R8G8B8 is returned when at least 1 pixel has a non zero alpha
component.

The patch fixes the cursor transparency in Runaway 2.

Tests were upstreamed:
https://source.winehq.org/git/wine.git/commitdiff/a30fd8c0e44833b2a6412987a348273bfe42fe2f?hp=ccdb74d81ac4a95aa87414f6459a8b44d451358a

Fix is still in wine-staging:
https://github.com/wine-staging/wine-staging/blob/master/patches/d3dx9-32bpp_Alpha_Channel/0001-d3dx9-Return-D3DFMT_A8R8G8B8-in-D3DXGetImageInfoFrom.patch

-- 
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