diff options
Diffstat (limited to 'src/cairo-tests/stroke.cpp')
| -rw-r--r-- | src/cairo-tests/stroke.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; |