From cb2cd9b7c3893e4b6ef55599b2ddcaef6456ad4c Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Tue, 17 Jun 2014 18:12:30 -0700 Subject: Drop --multi-shape Only the stroke test uses this, but stroke needs rewritten anyway. --- src/cairo-tests/stroke.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/cairo-tests/stroke.cpp') 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; } -- cgit v1.3.1-4-g156e