diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-05-05 18:25:26 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-05-05 18:25:26 -0700 |
| commit | 4d07d2c6fe9e77f5fecbe19528cb54cc06f0e8bd (patch) | |
| tree | b8fad0a12c1ea7bfa419942f81c6813da13ac115 /src/skia-tests/clip.cpp | |
| parent | 398770f6d07eb5916e12545b8d223b34fa69fd6e (diff) | |
Rename centre to center
Diffstat (limited to 'src/skia-tests/clip.cpp')
| -rw-r--r-- | src/skia-tests/clip.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/skia-tests/clip.cpp b/src/skia-tests/clip.cpp index 4e97540..dd19a37 100644 --- a/src/skia-tests/clip.cpp +++ b/src/skia-tests/clip.cpp @@ -45,19 +45,19 @@ static void drawClip(caskbench_context_t *ctx,double x,double y,double clipr=0) 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; - ctx->shape_args.path.addCircle(ctx->shape_args.centre_x, ctx->shape_args.centre_y,SkIntToScalar(clipr)); + ctx->shape_args.path.addCircle(ctx->shape_args.center_x, ctx->shape_args.center_y,SkIntToScalar(clipr)); 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*clipr); - ctx->shape_args.height = (ctx->shape_args.centre_y) + ((ctx->shape_args.height)?ctx->shape_args.height:2*clipr); - ctx->shape_args.path.addRect(ctx->shape_args.centre_x, ctx->shape_args.centre_y, ctx->shape_args.width, ctx->shape_args.height); + 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*clipr); + ctx->shape_args.height = (ctx->shape_args.center_y) + ((ctx->shape_args.height)?ctx->shape_args.height:2*clipr); + ctx->shape_args.path.addRect(ctx->shape_args.center_x, ctx->shape_args.center_y, ctx->shape_args.width, ctx->shape_args.height); ctx->shape_args.width = old_width; ctx->shape_args.height = old_height; break; @@ -120,8 +120,8 @@ static void drawShape(caskbench_context_t *ctx,double x,double y,double clipr=0) shape = ((4.0 * rand())/RAND_MAX) +1; else shape = ctx->shape_args.shape_id ; - 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.radius = r; 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; |