diff --git a/test/clip-operator.c b/test/clip-operator.c index 4e533c6ae..22bdab020 100644 --- a/test/clip-operator.c +++ b/test/clip-operator.c @@ -76,8 +76,8 @@ draw_glyphs (cairo_t *cr, int x, int y) cairo_text_extents (cr, "FG", &extents); cairo_move_to (cr, - x + (WIDTH - extents.width) / 2 - extents.x_bearing, - y + (HEIGHT - extents.height) / 2 - extents.y_bearing); + x + round ((WIDTH - extents.width) / 2) - extents.x_bearing, + y + round ((HEIGHT - extents.height) / 2) - extents.y_bearing); cairo_show_text (cr, "FG"); }