diff options
| author | suyambulingamrm <suyambu.rm@samsung.com> | 2014-05-26 19:32:56 +0530 |
|---|---|---|
| committer | suyambulingamrm <suyambu.rm@samsung.com> | 2014-05-26 19:32:56 +0530 |
| commit | 1ee11eb12e10ddefc6c5038e0471f50e32601806 (patch) | |
| tree | 2d4877ed45abbc72133b2464462beefebd4b867b /src/cairo-tests/clip.cpp | |
| parent | 2e3eb555e89f1a5a3d36f05c7484ac7b2a8bdcff (diff) | |
Issue #50. Removed hardcoded number of shapes.
Diffstat (limited to 'src/cairo-tests/clip.cpp')
| -rw-r--r-- | src/cairo-tests/clip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-tests/clip.cpp b/src/cairo-tests/clip.cpp index f688c35..26d0f62 100644 --- a/src/cairo-tests/clip.cpp +++ b/src/cairo-tests/clip.cpp @@ -44,7 +44,7 @@ void drawShape(caskbench_context_t *ctx,double x,double y,double clipr=0,bool is shape_type_t shape; r = 0.9 * element_spacing /2; if(!ctx->shape_defaults.shape_type) - shape = (shape_type_t) (((4.0 * rand())/RAND_MAX) + 1); + shape = generate_random_shape(); else shape = ctx->shape_defaults.shape_type; ctx->shape_defaults.x = x; |