diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2013-11-12 19:14:53 -0800 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2013-11-13 13:19:18 -0800 |
| commit | 8d30cc5e32d4c098c1382594e0799de44a44f1bf (patch) | |
| tree | 4a64aa30d865cfb74863e72dc0c0aab909c574b4 /src/cairo-tests/roundrect.cpp | |
| parent | 5a0770ee6117c8b1f9cd9bf5820e8ae268fd09a2 (diff) | |
Inform tests of the canvas width and height
This also fixes mis-matched surface sizes here and there.
Diffstat (limited to 'src/cairo-tests/roundrect.cpp')
| -rw-r--r-- | src/cairo-tests/roundrect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-tests/roundrect.cpp b/src/cairo-tests/roundrect.cpp index 4c8c4b7..aff994c 100644 --- a/src/cairo-tests/roundrect.cpp +++ b/src/cairo-tests/roundrect.cpp @@ -37,8 +37,8 @@ ca_test_roundrect(caskbench_context_t *ctx) int i, w, x, y; for (i=0; i<ctx->size; i++) { randomize_color (ctx->cr); - x = 10 + ((double)800*rand())/RAND_MAX; - y = 10 + ((double)300*rand())/RAND_MAX;; + x = 10 + ((double)ctx->canvas_width*rand())/RAND_MAX; + y = 10 + ((double)ctx->canvas_height*rand())/RAND_MAX;; w = ((double)ctx->size*rand())/RAND_MAX + 1; rounded_rectangle (ctx->cr, x, y, 100, 40, 4); |