From 69c194043ce3cbd1ea54133609f876b3244dfc9c Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Wed, 5 Mar 2014 19:52:59 -0800 Subject: Use same random numbers for colorization This makes most of the tests display the same for both cairo and skia. --- src/cairo-tests/bubbles.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cairo-tests/bubbles.cpp') diff --git a/src/cairo-tests/bubbles.cpp b/src/cairo-tests/bubbles.cpp index 235e2df..9c7fa8e 100644 --- a/src/cairo-tests/bubbles.cpp +++ b/src/cairo-tests/bubbles.cpp @@ -25,10 +25,11 @@ ca_test_bubbles(caskbench_context_t *ctx) cairo_t *cr = ctx->cairo_cr; for (i=0; isize; i++) { + randomize_color (cr); + r = ((double)max_dim*rand())/RAND_MAX + 1; x = (0.5*(double)ctx->canvas_width*rand())/RAND_MAX; y = (0.5*(double)ctx->canvas_height*rand())/RAND_MAX; - randomize_color (cr); cairo_arc (cr, x, y, r, 0, 2*M_PI); cairo_fill (cr); } -- cgit v1.3.1-4-g156e