summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/fill.cpp
diff options
context:
space:
mode:
authorsuyambulingamrm <suyambu.rm@samsung.com>2014-05-27 19:55:45 +0530
committersuyambulingamrm <suyambu.rm@samsung.com>2014-05-27 19:55:45 +0530
commit8e77b0d253afadcc543acc0463c062b9bd7857df (patch)
tree7eebcb4fc44746e1fd44906c7bc02ab9bc8e4c23 /src/cairo-tests/fill.cpp
parentcdef3d98a2e713644c972ebc7ba756f25b57efdc (diff)
Minor issue fixes which produced incorrect output with respect to cairo and skia shapes.
Diffstat (limited to 'src/cairo-tests/fill.cpp')
-rw-r--r--src/cairo-tests/fill.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-tests/fill.cpp b/src/cairo-tests/fill.cpp
index b268318..919ee13 100644
--- a/src/cairo-tests/fill.cpp
+++ b/src/cairo-tests/fill.cpp
@@ -46,8 +46,8 @@ ca_test_fill(caskbench_context_t *ctx)
}
if (!shape.radius)
shape.radius = 40;
-
- shape.shape_type = CB_SHAPE_RECTANGLE;
+ /* Use rectangle as default shape */
+ shape.shape_type = shape.shape_type ? shape.shape_type:CB_SHAPE_RECTANGLE;
cairoDrawRandomizedShape(ctx, &shape);
}
return 1;