From 8eb35dc7db018b9187c30454604fcfd88a8dadca Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Tue, 12 Nov 2013 17:43:33 -0800 Subject: Add a --cairo-surface-type parameter to choose image or glx surfaces This eventually will need replaced with something better, but should do for now. --- src/cairo-tests/stroke.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cairo-tests/stroke.cpp') diff --git a/src/cairo-tests/stroke.cpp b/src/cairo-tests/stroke.cpp index 1ebf823..1a47271 100644 --- a/src/cairo-tests/stroke.cpp +++ b/src/cairo-tests/stroke.cpp @@ -4,9 +4,12 @@ #include "caskbench.h" +static int line_length; + int ca_setup_stroke(caskbench_context_t *ctx) { + line_length = 60; return 1; } @@ -26,7 +29,7 @@ ca_test_stroke(caskbench_context_t *ctx) 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); + cairo_line_to (ctx->cr, x, 10 + line_length); cairo_set_line_width (ctx->cr, w); cairo_stroke (ctx->cr); prev_w = w; -- cgit v1.3.1-4-g156e