wined3d: Ensure wined3d_ftoa() exponent is 2 digits on Windows.

Henri Verbeet hverbeet at gmail.com
Sat Dec 14 04:32:56 CST 2013


On 14 December 2013 06:28, Jonathan Liu <net147 at gmail.com> wrote:
>
> This fixes a regression introduced by commit
> 12f16f2127ffce9a05eedf008c3aa3732751a7e3 where the returned exponent
> is 3 digits on Windows instead of 2 digits which results in rendering
> errors. The printf implementation in the Microsoft Visual C runtime
> uses three digits for the exponent by default.
>
If the issue here is that the buffers the callers pass are too small,
I think that's what should be fixed, perhaps with a comment added to
wined3d_ftoa(). Ideally we wouldn't use fixed size buffers there to
begin with though.



More information about the wine-devel mailing list