[cairo-commit] test/get-path-extents.c

Chris Wilson ickle at kemper.freedesktop.org
Wed May 23 04:49:24 PDT 2012


 test/get-path-extents.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f78696249f13c56a1a738b4645d8e2978d67d5ce
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed May 23 12:45:54 2012 +0100

    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 at chris-wilson.co.uk>

diff --git a/test/get-path-extents.c b/test/get-path-extents.c
index 4123ddb..7d07aab 100644
--- a/test/get-path-extents.c
+++ b/test/get-path-extents.c
@@ -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);


More information about the cairo-commit mailing list