On 14 December 2013 06:28, Jonathan Liu net147@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.