diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2013-11-26 23:18:41 -0800 |
|---|---|---|
| committer | Bryce Harrington <bryce@canonical.com> | 2013-11-26 23:20:36 -0800 |
| commit | 13c56c1327eecb18a3d87fa9a3b1af3c9a3d8c45 (patch) | |
| tree | 8fb7d31c5e917052ae716e7f98b289600b845a5f /src/cairo-tests/roundrect.cpp | |
| parent | b2107b9ef476f0b2baa353b3efc7db9055138446 (diff) | |
Make context variable names more explicit about cairo / skia
Diffstat (limited to 'src/cairo-tests/roundrect.cpp')
| -rw-r--r-- | src/cairo-tests/roundrect.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cairo-tests/roundrect.cpp b/src/cairo-tests/roundrect.cpp index aff994c..c75a7d2 100644 --- a/src/cairo-tests/roundrect.cpp +++ b/src/cairo-tests/roundrect.cpp @@ -35,15 +35,17 @@ int ca_test_roundrect(caskbench_context_t *ctx) { int i, w, x, y; + cairo_t *cr = ctx->cairo_cr; + for (i=0; i<ctx->size; i++) { - randomize_color (ctx->cr); + randomize_color (cr); 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); - cairo_set_line_width (ctx->cr, w); - cairo_stroke (ctx->cr); + rounded_rectangle (cr, x, y, 100, 40, 4); + cairo_set_line_width (cr, w); + cairo_stroke (cr); } return 1; } |