diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-05-07 22:55:04 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-05-08 18:50:52 -0700 |
| commit | 552ebcb8b3a942cadd1f494486fb48fd8a3df32e (patch) | |
| tree | cd4ddb285e9268c8207eef5bdfed1719981d1609 /src/skia-tests/fill.cpp | |
| parent | 075ed01aa995d1ce8546d5cf267cecb814ab0d5b (diff) | |
fill: Don't bother setting x, y too early
Diffstat (limited to 'src/skia-tests/fill.cpp')
| -rw-r--r-- | src/skia-tests/fill.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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; j<num_y_elements; j++) { - y = particle? particle->y : j * element_spacing; + int y = particle? particle->y : j * element_spacing; for (i=0; i<num_x_elements; i++) { - x = particle? particle->x : i * element_spacing; + int x = particle? particle->x : i * element_spacing; double y1, y2, cx, cy, rr; shape_type_t shape_type; |