diff options
Diffstat (limited to 'src/cairo-tests/cubic.cpp')
| -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; } |