replaced round with _cairo_lround. Round doesn't compile on Win32

This commit is contained in:
Azar@.(none) 2008-02-01 14:29:24 -08:00 committed by Behdad Esfahbod
parent 1d93e14876
commit 4c005f7ce3

View file

@ -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: