diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-07-01 10:54:19 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-07-01 10:54:19 -0700 |
| commit | cd3169b0e011dc6957b90695852befd7797b8b3c (patch) | |
| tree | 84a698c94b6e4616b811e5d65d303bfd54f2009c /src/cairo-tests/image.cpp | |
| parent | 9d1052a1799d1c8dd998f276a5bbdd5067e57551 (diff) | |
| parent | 86d5e7704ba3ee6faffa2dff9fa26149f7e06bed (diff) | |
Merge pull request #120 from Samsung/Issue_104
Issue #104. Fix scale bug in cairo image scale, Add alternate method to draw image using cairo_fill()
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; } |