From 552ebcb8b3a942cadd1f494486fb48fd8a3df32e Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Wed, 7 May 2014 22:55:04 -0700 Subject: fill: Don't bother setting x, y too early --- src/skia-tests/fill.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/skia-tests/fill.cpp b/src/skia-tests/fill.cpp index 8d17950..4865121 100644 --- a/src/skia-tests/fill.cpp +++ b/src/skia-tests/fill.cpp @@ -48,7 +48,7 @@ sk_teardown_fill(void) void drawSkiaShapes(caskbench_context_t *ctx, kinetics_t *particle) { - int i, j, x, y, r, p, shape; + int i, j, r, p, shape; unsigned int red, green, blue, alpha; r = 0.9 * element_spacing /2; int old_x, old_y, old_width, old_height; @@ -58,8 +58,8 @@ void drawSkiaShapes(caskbench_context_t *ctx, kinetics_t *particle) { if (!(ctx->shape_args.center_x && ctx->shape_args.center_y)) { - ctx->shape_args.center_x = x = ctx->canvas_width/2; - ctx->shape_args.center_y = y = ctx->canvas_height/2; + ctx->shape_args.center_x = ctx->canvas_width/2; + ctx->shape_args.center_y = ctx->canvas_height/2; } if (!ctx->shape_args.multi_shapes) if (!(ctx->shape_args.width && ctx->shape_args.height)) @@ -118,9 +118,9 @@ void drawSkiaShapes(caskbench_context_t *ctx, kinetics_t *particle) } for (j=0; jy : j * element_spacing; + int y = particle? particle->y : j * element_spacing; for (i=0; ix : i * element_spacing; + int x = particle? particle->x : i * element_spacing; double y1, y2, cx, cy, rr; shape_type_t shape_type; -- cgit v1.3.1-4-g156e