diff options
| author | suyambulingamrm <suyambu.rm@samsung.com> | 2014-05-28 10:21:55 +0530 |
|---|---|---|
| committer | suyambulingamrm <suyambu.rm@samsung.com> | 2014-05-28 10:21:55 +0530 |
| commit | e211070b7f79d48315ecaf1d2fe34ef573e9c49a (patch) | |
| tree | 9c55ac90416477c60cbf5875bb706fcf6ce4a367 /src/cairo-tests/fill.cpp | |
| parent | 2a1462ad1091618f4fe1b951db2b36c05eefd4d7 (diff) | |
Height value for shapes star and triangle needs to be updated. Causes incorrect outputs for gradients.
Diffstat (limited to 'src/cairo-tests/fill.cpp')
| -rw-r--r-- | src/cairo-tests/fill.cpp | 5 |
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); |