summaryrefslogtreecommitdiff
path: root/test/clip-operator.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-11-08 17:43:13 +0000
committerCarl Worth <cworth@cworth.org>2005-11-08 17:43:13 +0000
commit5b6c912667f62f808b9cf533b4486ce906197543 (patch)
tree3a9cd71f9f10151ba30fe6bcb42b3ddd5832cad0 /test/clip-operator.c
parent48218fec48d1bfa2a93cc21f8f9df569e40ca79e (diff)
downloadcairo-5b6c912667f62f808b9cf533b4486ce906197543.tar.gz
Note that PS is now passing all tests except for self-copy.
Add missing glue to hook up PS backend with new meta-surface support for the 5 basic drawing operations. Currently, this forces image fallbacks for all operations. Switch from gs device of pngalpha to png16m which for some reason gives the correct result for nil-surface now, while pngalpha does not. Key off of N_OPERATORS as the loop control for easier trimming down of this test case when debugging. Rename stroke_style parameter to style in backend->stroke parameter list. Remove PS-specific reference images for many tests which are now using more fallback paths than before.
Diffstat (limited to 'test/clip-operator.c')
-rw-r--r--test/clip-operator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/clip-operator.c b/test/clip-operator.c
index 6cc5216c2..378d6bd52 100644
--- a/test/clip-operator.c
+++ b/test/clip-operator.c
@@ -158,7 +158,7 @@ draw (cairo_t *cr, int width, int height)
cairo_font_options_destroy (font_options);
for (j = 0; j < ARRAY_SIZE (draw_funcs); j++) {
- for (op = CAIRO_OPERATOR_CLEAR; op <= CAIRO_OPERATOR_SATURATE; op++) {
+ for (op = CAIRO_OPERATOR_CLEAR; op < N_OPERATORS; op++) {
x = op * (WIDTH + PAD) + PAD;
y = j * (HEIGHT + PAD) + PAD;