Re: [PATCH v2 0/6] MR1682: d3dx9: Partially implement texture filling using texture shaders.
12 Dec
2022
12 Dec
'22
4:28 p.m.
Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/tests/texture.c:
+ return 0; + } +}
- IDirect3DCubeTexture9_Release(tex); +static DWORD get_expected_argb_color(D3DFORMAT format, const D3DXVECTOR4 *v) +{ + switch (format) + { + case D3DFMT_A8R8G8B8: + return (BYTE)(v->w * 255 + 0.5f) << 24 + | (BYTE)(v->x * 255 + 0.5f) << 16 + | (BYTE)(v->y * 255 + 0.5f) << 8 + | (BYTE)(v->z * 255 + 0.5f); + case D3DFMT_A1R5G5B5: + Probably the empty line was meant to go above the case rather than below.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1682#note_19498
1104
Age (days ago)
1104
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matteo Bruni (@Mystral)