From 26daa3b949f4d0cf6b370972afbc827aaf181ea7 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Fri, 8 Nov 2013 14:20:45 -0800 Subject: Make the test complexity a control variable --- src/cairo-tests/stroke.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cairo-tests/stroke.cpp') diff --git a/src/cairo-tests/stroke.cpp b/src/cairo-tests/stroke.cpp index 2ae95ae..1ebf823 100644 --- a/src/cairo-tests/stroke.cpp +++ b/src/cairo-tests/stroke.cpp @@ -21,9 +21,9 @@ ca_test_stroke(caskbench_context_t *ctx) int i, x, w, prev_w; x = 0; prev_w = 0; - for (i=0; i<32; i++) { + for (i=0; isize; i++) { randomize_color (ctx->cr); - w = (32.0*rand())/RAND_MAX + 1; + w = ((double)ctx->size*rand())/RAND_MAX + 1; x += 4 + (prev_w + w)/2.0; cairo_move_to (ctx->cr, x, 10); cairo_line_to (ctx->cr, x, 70); -- cgit v1.3.1-4-g156e