summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/image-rotate.cpp
diff options
context:
space:
mode:
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);
}