From 5e9cdcca00a490f3a36b4229f5353d795ca53a5d Mon Sep 17 00:00:00 2001 From: Antoine Azar Date: Thu, 7 Feb 2008 17:09:41 -0500 Subject: [PATCH] Fixed rounding function call --- test/get-path-extents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/get-path-extents.c b/test/get-path-extents.c index 948b94cab..65800ca08 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: