[cairo] Brand new _cairo_lround implementation
cworth at cworth.org
Tue Dec 5 14:41:39 PST 2006
On Tue, 05 Dec 2006 14:08:17 -0800, Bill Spitzak wrote:
> Daniels code does round-away-from-zero, apparently. I think floor or
> ceil is needed consistently. Otherwise when something crosses zero it
> may offset by 1 pixel. Could this be the problem?
Yes, that's exactly the problem.
Daniel has just tracked that down and is now working to rewrite his
magic conversion code to consistently round toward one infinity or the
other rather than away from zero.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20061205/4ac36f1b/attachment.pgp
More information about the cairo