在 2020/7/30 上午4:25, Björn Schäpers | MIMOT GmbH 写道:
>
> This Change was Introduced in 6c8c2a. And I don't really see the need for the
> access through a pointer. I have changed it to:
> static inline float DXVA2FixedToFloat(DXVA2_Fixed32 f32) {
> return (float)f32.Value + (float)f32.Fraction / (1 << 16);
> }
>
> static inline DXVA2_Fixed32 DXVA2FloatToFixed(float f) {
> DXVA2_Fixed32 f32;
> f32.Value = ((ULONG) (f * (1 << 16))) >> 16;
> f32.Fraction = ((ULONG) (f * (1 << 16))) & 0xFFFF;
> return f32;
> }
>
> And at least Qt seems to compile (still ongoing).
> And yes I know it's a generated file, but I just want to progress here.
> This conversion is allowed in C but forbidden in C++. Please submit this issue to Wine. After it is fixed in Wine it may be re-imported. We might fix this locally but it would later get overwritten anyway. -- Best regards, LH_Mouse
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
