summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/fill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-tests/fill.cpp')
-rw-r--r--src/cairo-tests/fill.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cairo-tests/fill.cpp b/src/cairo-tests/fill.cpp
index 919ee13..2bcc619 100644
--- a/src/cairo-tests/fill.cpp
+++ b/src/cairo-tests/fill.cpp
@@ -46,6 +46,11 @@ ca_test_fill(caskbench_context_t *ctx)
}
if (!shape.radius)
shape.radius = 40;
+
+ /* Height is used for creating patterns, needs to be updated for star and triangle */
+ if (shape.shape_type == CB_SHAPE_STAR || shape.shape_type == CB_SHAPE_TRIANGLE)
+ shape.height = 2*shape.radius;
+
/* Use rectangle as default shape */
shape.shape_type = shape.shape_type ? shape.shape_type:CB_SHAPE_RECTANGLE;
cairoDrawRandomizedShape(ctx, &shape);