diff options
| author | suyambulingamrm <suyambu.rm@samsung.com> | 2014-07-18 18:27:27 +0530 |
|---|---|---|
| committer | suyambulingamrm <suyambu.rm@samsung.com> | 2014-07-18 18:27:27 +0530 |
| commit | bbac18889369ccdd296ce9c2a25ef18bee4da133 (patch) | |
| tree | bd58aa1ac970b0a4b7c5713c80ec2cb202285511 /src/cairo-tests | |
| parent | d2fb40482089a5d333438c4f59c5e8788e15c6d8 (diff) | |
Adapt Cubic tests similar to flash canvas.
Diffstat (limited to 'src/cairo-tests')
| -rw-r--r-- | src/cairo-tests/cubic.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |