summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/roundrect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-tests/roundrect.cpp')
-rw-r--r--src/cairo-tests/roundrect.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-tests/roundrect.cpp b/src/cairo-tests/roundrect.cpp
index 6071f9c..2b87dac 100644
--- a/src/cairo-tests/roundrect.cpp
+++ b/src/cairo-tests/roundrect.cpp
@@ -44,11 +44,11 @@ ca_test_roundrect(caskbench_context_t *ctx)
x = 10 + trunc( (((double)ctx->canvas_width-20.0)*rand())/RAND_MAX );
y = 10 + trunc( (((double)ctx->canvas_height-20.0)*rand())/RAND_MAX );
- //rounded_rectangle (cr, x, y, 100, 40, 4);
-
- // TODO: This requires cairogles
+#if USE_CAIROGLES
cairo_rounded_rectangle (cr, x, y, 100, 40, 4, 4, 4, 4);
-
+#else
+ rounded_rectangle (cr, x, y, 100, 40, 4);
+#endif
line_width = trunc( ((double)ctx->size*rand())/RAND_MAX ) + 1;
cairo_set_line_width (cr, line_width);