From 1ee11eb12e10ddefc6c5038e0471f50e32601806 Mon Sep 17 00:00:00 2001 From: suyambulingamrm Date: Mon, 26 May 2014 19:32:56 +0530 Subject: Issue #50. Removed hardcoded number of shapes. --- src/cairo-tests/stroke.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cairo-tests/stroke.cpp') diff --git a/src/cairo-tests/stroke.cpp b/src/cairo-tests/stroke.cpp index fb8961c..a3ddf45 100644 --- a/src/cairo-tests/stroke.cpp +++ b/src/cairo-tests/stroke.cpp @@ -49,7 +49,7 @@ static void drawShape(caskbench_context_t *ctx,double x,double y) shape_type_t shape; r = 0.9 * element_spacing /2; if(ctx->shape_defaults.shape_type == CB_SHAPE_NONE) - shape = (shape_type_t) (((4.0 * rand())/RAND_MAX) + 1); + shape = generate_random_shape(); else shape = ctx->shape_defaults.shape_type; switch (shape) { -- cgit v1.3.1-4-g156e