[cairo] _cairo_lround in tests

Behdad Esfahbod behdad at behdad.org
Thu Feb 7 21:20:07 PST 2008


Pushed.

On Thu, 2008-02-07 at 17:13 -0500, Antoine Azar wrote:
> As Peter noticed, my replacement of round() (which doesn't compile on 
> win32) to _cairo_lround() in test/get-path-extents.c is incorrect. I 
> just replaced it by floor ( value + 0.5 ), which should have the same 
> behavior as round() . Here's the corresponding patch.
> 
> Thanks,
> Antoine
> 
> 
> At 04:28 PM 2/7/2008, Peter Weilbacher wrote:
> >Hi Antoine,
> >
> >seems like the _cairo_lround in test/get-path-extents.c came from you
> >commit. Is there no other way to fix this for Windows? Because as far
> >as I understand _cairo_lround is an internal cairo function and shouldn't
> >be used outside the library itself. It breaks compiling that test on OS/2
> >at least because that function isn't exported from the cairo DLL.
> >
> >    Peter.
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759



More information about the cairo mailing list