18 Sep
2025
18 Sep
'25
5:44 p.m.
Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/d3dx_helpers.c:
assert(format->bits[1]); *dst_component = dst->value.x; } + else if (dst_ctype == CTYPE_SHILO) + { + float cx_val; + + assert(format->bits[1] && format->bits[2] && c == 3); + cx_val = 1.0f - powf(dst->value.x, 2.0f) - powf(dst->value.y, 2.0f);
I'd just do it like: ```suggestion:-0+0 cx_val = 1.0f - dst->value.x * dst->value.x - dst->value.y * dst->value.y; ``` Unless there is some reason not to? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8966#note_116260