diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-06-17 18:12:30 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-06-17 18:15:38 -0700 |
| commit | cb2cd9b7c3893e4b6ef55599b2ddcaef6456ad4c (patch) | |
| tree | 4b4bb717a8fc5c723d625a881e2ff147d960e35f /src/cairo-tests/stroke.cpp | |
| parent | f5ff6a9191cc3af345b4dd7eae31fb599212caab (diff) | |
Drop --multi-shape
Only the stroke test uses this, but stroke needs rewritten anyway.
Diffstat (limited to 'src/cairo-tests/stroke.cpp')
| -rw-r--r-- | src/cairo-tests/stroke.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cairo-tests/stroke.cpp b/src/cairo-tests/stroke.cpp index c950917..ff445b8 100644 --- a/src/cairo-tests/stroke.cpp +++ b/src/cairo-tests/stroke.cpp @@ -87,7 +87,7 @@ static void drawShape(caskbench_context_t *ctx,double x,double y) } } -void drawStroke(caskbench_context_t *ctx,kinetics_t *particles) +void draw_stroke(caskbench_context_t *ctx, kinetics_t *particles) { int i, r,j; int w, h; @@ -127,13 +127,12 @@ ca_test_stroke(caskbench_context_t *ctx) for (i = 0; i < num_particles; i++) { kinetics_update(&particles[i], 0.1); - drawStroke(ctx,&particles[i]); + draw_stroke(ctx, &particles[i]); } } + } else { + draw_stroke(ctx, NULL); } - else - //drawStroke(ctx,NULL); - ctx->shape_defaults.multi_shapes?drawStroke(ctx,NULL):drawShape(ctx,ctx->shape_defaults.x?ctx->shape_defaults.x:100.0,ctx->shape_defaults.y?ctx->shape_defaults.y:100.0); return 1; } |