diff options
Diffstat (limited to 'src/cairo-tests/image.cpp')
| -rw-r--r-- | src/cairo-tests/image.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-tests/image.cpp b/src/cairo-tests/image.cpp index cbf4c78..cdb5348 100644 --- a/src/cairo-tests/image.cpp +++ b/src/cairo-tests/image.cpp @@ -62,7 +62,14 @@ ca_test_image(caskbench_context_t* ctx) double x = (double)rand()/RAND_MAX * pw; double y = (double)rand()/RAND_MAX * ph; cairo_set_source_surface (cr, image, x, y); +#if 1 cairo_paint (cr); +#else + // Fill Method + cairo_rectangle(cr, x, y, iw, ih); + cairo_fill(cr); +#endif + } return 1; } |