mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 13:48:02 +02:00
Fixed rounding function call
This commit is contained in:
parent
80e11a85a9
commit
5e9cdcca00
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ check_extents (const char *message, cairo_t *cr, enum ExtentsType type,
|
||||||
break;
|
break;
|
||||||
case APPROX_EQUALS:
|
case APPROX_EQUALS:
|
||||||
relation_string = "approx. equal";
|
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;
|
return 1;
|
||||||
break;
|
break;
|
||||||
case CONTAINS:
|
case CONTAINS:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue