diff options
author | Carl Worth <cworth@cworth.org> | 2006-11-22 16:43:45 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-11-22 16:43:45 -0800 |
commit | fdbb820ece5e6ab970cf6a9b756eebf7283c0597 (patch) | |
tree | 6678b046416e5fed4bd1c01195be31ae77dd29f0 /test/operator-clear.c | |
parent | 11d21dbaa3604951f73b641e4d88723696157a8e (diff) |
test: Use round to pass only integers to cairo_show_glyphs (in 3 more tests)
This is the same fix as in the recent commit (166dffc96aa26b21f87f12af22b11630583cc85b)
but for the same idiom that appears in the operator-clear,
operator-source, and unbounded-operator tests. This fixes
the failures that were introduced by the recent switch to
_cairo_lround.
Diffstat (limited to 'test/operator-clear.c')
-rw-r--r-- | test/operator-clear.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/operator-clear.c b/test/operator-clear.c index f1e1aaa6..5590e0f1 100644 --- a/test/operator-clear.c +++ b/test/operator-clear.c @@ -89,8 +89,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"); } |