[cairo-commit] test/get-path-extents.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Feb 7 21:20:02 PST 2008


 test/get-path-extents.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5e9cdcca00a490f3a36b4229f5353d795ca53a5d
Author: Antoine Azar <cairo at antoineazar.com>
Date:   Thu Feb 7 17:09:41 2008 -0500

    Fixed rounding function call

diff --git a/test/get-path-extents.c b/test/get-path-extents.c
index 948b94c..65800ca 100644
--- a/test/get-path-extents.c
+++ b/test/get-path-extents.c
@@ -78,7 +78,7 @@ check_extents (const char *message, cairo_t *cr, enum ExtentsType type,
         break;
     case APPROX_EQUALS:
         relation_string = "approx. equal";
-        if (_cairo_lround (ext_x1) == x && _cairo_lround (ext_y1) == y && _cairo_lround (ext_x2) == x + width && _cairo_lround (ext_y2) == y + height)
+        if (floor (ext_x1+0.5) == x && floor (ext_y1+0.5) == y && floor (ext_x2+0.5) == x + width && floor (ext_y2+0.5) == y + height)
             return 1;
         break;
     case CONTAINS:


More information about the cairo-commit mailing list