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/skia-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/skia-tests/roundrect.cpp')
| -rw-r--r-- | src/skia-tests/roundrect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/skia-tests/roundrect.cpp b/src/skia-tests/roundrect.cpp index 42834c3..66f8120 100644 --- a/src/skia-tests/roundrect.cpp +++ b/src/skia-tests/roundrect.cpp @@ -24,8 +24,8 @@ sk_test_roundrect(caskbench_context_t *ctx) for (i=0; i<ctx->size; i++) { ctx->paint->setColor(rand()); w = ((double)ctx->size*rand())/RAND_MAX + 1; - x = ((double)800*rand())/RAND_MAX + 10; - y = ((double)300*rand())/RAND_MAX + 10; + x = ((double)ctx->canvas_width*rand())/RAND_MAX + 10; + y = ((double)ctx->canvas_height*rand())/RAND_MAX + 10; rect.set(x, y, x+100, y+40); ctx->paint->setStrokeWidth(w); ctx->canvas->drawRoundRect(rect, 4.0, 4.0, *(ctx->paint)); |