From bbac18889369ccdd296ce9c2a25ef18bee4da133 Mon Sep 17 00:00:00 2001 From: suyambulingamrm Date: Fri, 18 Jul 2014 18:27:27 +0530 Subject: Adapt Cubic tests similar to flash canvas. --- src/cairo-tests/cubic.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/cairo-tests/cubic.cpp') diff --git a/src/cairo-tests/cubic.cpp b/src/cairo-tests/cubic.cpp index 64c44ef..8482292 100644 --- a/src/cairo-tests/cubic.cpp +++ b/src/cairo-tests/cubic.cpp @@ -47,9 +47,13 @@ ca_test_cubic(caskbench_context_t *ctx) cairoRandomizeColor(ctx); cairoDrawCubicCurve(ctx, &shape); + if (ctx->shape_defaults.fill_type == CB_FILL_SOLID) + cairo_fill(ctx->cairo_cr); + else + cairo_stroke(ctx->cairo_cr); } - cairo_stroke(ctx->cairo_cr); + return 1; } -- cgit v1.3.1-4-g156e