[cairo-commit] test/get-path-extents.c
Behdad Esfahbod
behdad at kemper.freedesktop.org
Tue Feb 5 21:28:42 PST 2008
test/get-path-extents.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4c005f7ce385f3f8b161cffac11bb9766f4ef9a9
Author: Azar at .(none) <Azar at .(none)>
Date: Fri Feb 1 14:29:24 2008 -0800
replaced round with _cairo_lround. Round doesn't compile on Win32
diff --git a/test/get-path-extents.c b/test/get-path-extents.c
index 12901fd..948b94c 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 (round (ext_x1) == x && round (ext_y1) == y && round (ext_x2) == x + width && round (ext_y2) == y + height)
+ if (_cairo_lround (ext_x1) == x && _cairo_lround (ext_y1) == y && _cairo_lround (ext_x2) == x + width && _cairo_lround (ext_y2) == y + height)
return 1;
break;
case CONTAINS:
More information about the cairo-commit
mailing list