summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/stroke.cpp
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-05-05 18:25:26 -0700
committerBryce Harrington <b.harrington@samsung.com>2014-05-05 18:25:26 -0700
commit4d07d2c6fe9e77f5fecbe19528cb54cc06f0e8bd (patch)
treeb8fad0a12c1ea7bfa419942f81c6813da13ac115 /src/cairo-tests/stroke.cpp
parent398770f6d07eb5916e12545b8d223b34fa69fd6e (diff)
Rename centre to center
Diffstat (limited to 'src/cairo-tests/stroke.cpp')
-rw-r--r--src/cairo-tests/stroke.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cairo-tests/stroke.cpp b/src/cairo-tests/stroke.cpp
index 2b2f218..3f0e144 100644
--- a/src/cairo-tests/stroke.cpp
+++ b/src/cairo-tests/stroke.cpp
@@ -61,16 +61,16 @@ static void drawShape(caskbench_context_t *ctx,double x,double y)
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;
cairoShapes[Circle](ctx,&ctx->shape_args);
break;
case 2:
// Rectangle
- ctx->shape_args.centre_x = x;
- ctx->shape_args.centre_y = y;
+ ctx->shape_args.center_x = x;
+ ctx->shape_args.center_y = y;
ctx->shape_args.width = (ctx->shape_args.width)?ctx->shape_args.width:2*r;
ctx->shape_args.height = (ctx->shape_args.height)?ctx->shape_args.height:2*r;
cairoShapes[Rectangle](ctx,&ctx->shape_args);
@@ -159,7 +159,7 @@ ca_test_stroke(caskbench_context_t *ctx)
}
else
//drawStroke(ctx,NULL);
- ctx->shape_args.multi_shapes?drawStroke(ctx,NULL):drawShape(ctx,ctx->shape_args.centre_x?ctx->shape_args.centre_x:100.0,ctx->shape_args.centre_y?ctx->shape_args.centre_y:100.0);
+ ctx->shape_args.multi_shapes?drawStroke(ctx,NULL):drawShape(ctx,ctx->shape_args.center_x?ctx->shape_args.center_x:100.0,ctx->shape_args.center_y?ctx->shape_args.center_y:100.0);
return 1;
}