Skip to content

Commit

Permalink
test: Increase surface size for get-path-extents
Browse files Browse the repository at this point in the history
Whilst generating a glyph run from a string, any glyphs that are far
outside the surface (including a substantial guard region) are culled.
This affects the path extents. Workaround this by increasing the surface
size.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed May 23, 2012
1 parent 3ae8bce commit f786962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/get-path-extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ draw (cairo_t *cr, int width, int height)
int errors = 0;

surface = cairo_surface_create_similar (cairo_get_group_target (cr),
CAIRO_CONTENT_COLOR, 100, 100);
CAIRO_CONTENT_COLOR, 1000, 1000);
/* don't use cr accidentally */
cr = NULL;
cr2 = cairo_create (surface);
Expand Down

0 comments on commit f786962

Please sign in to comment.