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

Jonathan Liu net147 at gmail.com
Fri Dec 13 23:28:39 CST 2013


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.

This also handles the situtation where printf uses two-digit exponents
after _set_output_format(_TWO_DIGIT_EXPONENT) is called.
---
  dlls/wined3d/utils.c | 14 ++++++++++++++
  1 file changed, 14 insertions(+)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wined3d-Ensure-wined3d_ftoa-exponent-is-2-digits-on-.txt
Type: text/x-patch
Size: 795 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20131214/ecd3da11/attachment.bin>


More information about the wine-patches mailing list