summaryrefslogtreecommitdiffstatsci
path: root/src/skia-tests/fill.cpp
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-05-07 20:06:57 -0700
committerBryce Harrington <b.harrington@samsung.com>2014-05-08 18:30:33 -0700
commitd0e243a2a663bf995f65ca7e72a1d20ad462f2d9 (patch)
tree064f0b9102cbbf6e34444a080ee5f6fb467ce93a /src/skia-tests/fill.cpp
parentbd9d6a215e67604acb72c210cc770381e4e8ea54 (diff)
Simplify
Diffstat (limited to 'src/skia-tests/fill.cpp')
-rw-r--r--src/skia-tests/fill.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/skia-tests/fill.cpp b/src/skia-tests/fill.cpp
index 22bd27b..3cc6103 100644
--- a/src/skia-tests/fill.cpp
+++ b/src/skia-tests/fill.cpp
@@ -193,10 +193,10 @@ void drawSkiashapes(caskbench_context_t *ctx,kinetics_t *particles)
ctx->shape_args.center_y = y+r;
ctx->shape_args.radius = r;
- y1 = ctx->shape_args.center_y-r;
- y2 = ctx->shape_args.center_y+r;
- cx = ctx->shape_args.center_x;
- cy = ctx->shape_args.center_y;
+ y1 = y;
+ y2 = y+2*r;
+ cx = x+r;
+ cy = y+r;
rr = r;
break;
@@ -210,11 +210,11 @@ void drawSkiashapes(caskbench_context_t *ctx,kinetics_t *particles)
ctx->shape_args.width = (ctx->shape_args.center_x) +((ctx->shape_args.width)?ctx->shape_args.width:2*r);
ctx->shape_args.height = (ctx->shape_args.center_y) + ((ctx->shape_args.height)?ctx->shape_args.height:2*r);
- y1 = ctx->shape_args.center_y;
- y2 = ctx->shape_args.center_y+ctx->shape_args.height/4;
- cx = (ctx->shape_args.center_x+ctx->shape_args.width)/2;
- cy = (ctx->shape_args.center_y+ctx->shape_args.height)/2;
- rr = (ctx->shape_args.height-ctx->shape_args.center_y)/2;
+ y1 = y;
+ y2 = y + ctx->shape_args.height/4;
+ cx = (x + ctx->shape_args.width)/2;
+ cy = (y + ctx->shape_args.height)/2;
+ rr = (ctx->shape_args.height - y)/2;
break;