mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-24 19:30:10 +01:00
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:
parent
3ae8bce832
commit
f78696249f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue