test: Increase surface size for get-path-extents

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>
This commit is contained in:
Chris Wilson 2012-05-23 12:45:54 +01:00
parent 3ae8bce832
commit f78696249f

View file

@ -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);