summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/image-rotate.cpp
diff options
context:
space:
mode:
authorsuyambulingamrm <suyambu.rm@samsung.com>2014-07-01 18:01:16 +0530
committersuyambulingamrm <suyambu.rm@samsung.com>2014-07-01 18:01:16 +0530
commit86d5e7704ba3ee6faffa2dff9fa26149f7e06bed (patch)
treef586138cdde5566172e35c3e4c4c0640579dc52f /src/cairo-tests/image-rotate.cpp
parent7cbba95b7628405a2457f9aecf2764c0502fc6ef (diff)
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-rotate.cpp')
-rw-r--r--src/cairo-tests/image-rotate.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairo-tests/image-rotate.cpp b/src/cairo-tests/image-rotate.cpp
index e56d706..68da107 100644
--- a/src/cairo-tests/image-rotate.cpp
+++ b/src/cairo-tests/image-rotate.cpp
@@ -69,7 +69,13 @@ ca_test_image_rotate(caskbench_context_t* ctx)
cairo_rotate(cr, i / 50.0); // TODO: Original rotates by counter/50
cairo_translate(cr, -iw/2, -ih/2);
cairo_set_source_surface (cr, image, 0, 0);
+#if 1
cairo_paint (cr);
+#else
+ cairo_rectangle(cr, 0, 0, iw, ih);
+ cairo_fill(cr);
+#endif
+
cairo_restore(cr);
}