https://bugs.winehq.org/show_bug.cgi?id=48631
Bug ID: 48631 Summary: Death to Spies: Moment of Truth demo renders text as a black squares Product: Wine Version: 5.2 Hardware: x86-64 URL: http://files.aspyr.com/support/DTS_Demo_Installer.zip OS: Linux Status: NEW Keywords: download Severity: minor Priority: P2 Component: directx-d3dx9 Assignee: wine-bugs@winehq.org Reporter: andrey.goosev@gmail.com Distribution: ---
Created attachment 66482 --> https://bugs.winehq.org/attachment.cgi?id=66482 screenshot
Setting d3dx9_32 to 'native,builtin' helps.
https://bugs.winehq.org/show_bug.cgi?id=48631
--- Comment #1 from Andrey Gusev andrey.goosev@gmail.com --- Created attachment 66483 --> https://bugs.winehq.org/attachment.cgi?id=66483 +d3dx
https://bugs.winehq.org/show_bug.cgi?id=48631
Christian Costa titan.costa@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |titan.costa@gmail.com
--- Comment #2 from Christian Costa titan.costa@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/a30fd8c0e44833b2a6412987a3...
Fix is still in wine-staging: https://github.com/wine-staging/wine-staging/blob/master/patches/d3dx9-32bpp...
https://bugs.winehq.org/show_bug.cgi?id=48631
--- Comment #3 from Andrey Gusev andrey.goosev@gmail.com --- Yes, modified patch works with this. Thanks for the tip.
https://bugs.winehq.org/show_bug.cgi?id=48631
--- Comment #4 from Andrey Gusev andrey.goosev@gmail.com --- Created attachment 66491 --> https://bugs.winehq.org/attachment.cgi?id=66491 alpha for TGA
https://bugs.winehq.org/show_bug.cgi?id=48631
--- Comment #5 from Christian Costa titan.costa@gmail.com --- Fix for ARGB BMP has been upstreamed: https://source.winehq.org/git/wine.git/commitdiff/8f6c832b3178279321140d4a79...
https://bugs.winehq.org/show_bug.cgi?id=48631
--- Comment #6 from Christian Costa titan.costa@gmail.com --- Created attachment 69302 --> https://bugs.winehq.org/attachment.cgi?id=69302 Patch for Handling TGA ARGB
This patch does the same for TGA.
https://bugs.winehq.org/show_bug.cgi?id=48631
--- Comment #7 from Andrey Gusev andrey.goosev@gmail.com --- (In reply to Christian Costa from comment #6)
Created attachment 69302 [details] Patch for Handling TGA ARGB
This patch does the same for TGA.
It works.
https://bugs.winehq.org/show_bug.cgi?id=48631
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |fgouget@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=48631
--- Comment #8 from Andrey Gusev andrey.goosev@gmail.com --- Also helps with a white loading bar in Shadow Warrior.
https://bugs.winehq.org/show_bug.cgi?id=48631
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Death to Spies: Moment of |Multiple games display text |Truth demo renders text as |as squares (Death to Spies: |a black squares |Moment of Truth, Shadow | |Warrior, Resident Evil 4 | |HD)
https://bugs.winehq.org/show_bug.cgi?id=48631
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |46f08b169bc58f2ebb29f2bda84 | |3401bf2370930
--- Comment #9 from Andrey Gusev andrey.goosev@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commit/46f08b169bc58f2ebb29f2bda84340...
https://bugs.winehq.org/show_bug.cgi?id=48631
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.0-rc2.
https://bugs.winehq.org/show_bug.cgi?id=48631
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x
https://bugs.winehq.org/show_bug.cgi?id=48631
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |---
--- Comment #11 from Michael Stefaniuc mstefani@winehq.org --- Removing the 6.0.x milestone from bug fixes included in 6.0.4.