summaryrefslogtreecommitdiffstatsci
path: root/src/skia-tests/stroke.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/skia-tests/stroke.cpp')
-rw-r--r--src/skia-tests/stroke.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/skia-tests/stroke.cpp b/src/skia-tests/stroke.cpp
index 3792af6..f2f76f8 100644
--- a/src/skia-tests/stroke.cpp
+++ b/src/skia-tests/stroke.cpp
@@ -49,18 +49,18 @@ static void drawShape(caskbench_context_t *ctx,double x,double y,kinetics_t *par
switch (shape) {
case 1:
// Circle
- ctx->shape_args.centre_x = x+r;
- ctx->shape_args.centre_y = y+r;
+ ctx->shape_args.center_x = x+r;
+ ctx->shape_args.center_y = y+r;
ctx->shape_args.radius = r;
skiaShapes[Circle](ctx,&ctx->shape_args);
break;
case 2:
// Rectangle
- ctx->shape_args.centre_x = x;
- ctx->shape_args.centre_y = y;
- ctx->shape_args.width = (ctx->shape_args.centre_x) +((ctx->shape_args.width)?ctx->shape_args.width:2*r);
- ctx->shape_args.height = (ctx->shape_args.centre_y) + ((ctx->shape_args.height)?ctx->shape_args.height:2*r);
+ ctx->shape_args.center_x = x;
+ ctx->shape_args.center_y = y;
+ 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);
skiaShapes[Rectangle](ctx,&ctx->shape_args);
ctx->shape_args.width = old_width;
ctx->shape_args.height = old_height;
@@ -168,6 +168,6 @@ sk_test_stroke(caskbench_context_t *ctx)
}
/* Static clip */
else
- ctx->shape_args.multi_shapes?draw_stroke(ctx,ctx->skia_canvas,NULL):drawShape(ctx,ctx->shape_args.centre_x?ctx->shape_args.centre_x:100,ctx->shape_args.centre_y?ctx->shape_args.centre_y:100);
+ ctx->shape_args.multi_shapes?draw_stroke(ctx,ctx->skia_canvas,NULL):drawShape(ctx,ctx->shape_args.center_x?ctx->shape_args.center_x:100,ctx->shape_args.center_y?ctx->shape_args.center_y:100);
return 1;
}