On Sun, Mar 22, 2020 at 5:06 AM Alistair Leslie-Hughes leslie_alistair@hotmail.com wrote:
Wine-bug: https://bugs.winehq.org/show_bug.cgi?id=48731 Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com
dlls/d3dx9_36/surface.c | 12 +++++ dlls/d3dx9_36/tests/surface.c | 92 +++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+)
diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c index e2b398345c..22a872b5fd 100644 --- a/dlls/d3dx9_36/surface.c +++ b/dlls/d3dx9_36/surface.c @@ -108,6 +108,7 @@ static const GUID *d3dformat_to_wic_guid(D3DFORMAT format) #define DDS_PF_ALPHA 0x1 #define DDS_PF_ALPHA_ONLY 0x2 #define DDS_PF_FOURCC 0x4 +#define DDS_PF_PALETTE8 0x20 #define DDS_PF_RGB 0x40 #define DDS_PF_YUV 0x200 #define DDS_PF_LUMINANCE 0x20000
I'm curious if you found the name somewhere or you made it up. If the latter, I'd probably prefer DDS_PF_INDEXED or something like that.
Patch looks okay otherwise (although I haven't looked at it in great detail), assuming the test image is of your own creation.