[Webkit-unassigned] [Bug 27349] [WINCE] Add GraphicsContextWince implementation for WinCE.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 18 10:33:51 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27349





--- Comment #8 from Yong Li <yong.li at torchmobile.com>  2009-07-18 10:33:50 PDT ---
Oops: lround does different thing:

inline long lround(double num) { return static_cast<long>(num > 0 ? num + 0.5 :
ceil(num - 0.5)); }

What we want in GraphicsContextWince.cpp is to round -0.5 to 0, as 0.5 is
rounded to 1, so that the rendering behavior is consistent when offset varies.

but lround(-0.5) will return -1.

-Yong

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list