summaryrefslogtreecommitdiff
path: root/test/operator-alpha-alpha.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-01-05 16:00:37 +0100
committerAndrea Canciani <ranma42@gmail.com>2011-01-19 11:52:40 +0100
commit2e75bf5a25cc5b7fd33702e2b1474f94caeab158 (patch)
tree0f35610f8dfb2d6aafcdaa774fd783a5631bb086 /test/operator-alpha-alpha.c
parent45505fc5fb14d774c8e13bdca6ca6f75d4b2f9df (diff)
downloadcairo-2e75bf5a25cc5b7fd33702e2b1474f94caeab158.tar.gz
test: Fix operator-alpha-alpha
The test is checking the compositing of color-alpha sources although it was meant to check the compositing of alpha-only sources on alpha-only destinations. This commit fixes the code to respect the test description.
Diffstat (limited to 'test/operator-alpha-alpha.c')
-rw-r--r--test/operator-alpha-alpha.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/operator-alpha-alpha.c b/test/operator-alpha-alpha.c
index b76faf5aa..2cef8585c 100644
--- a/test/operator-alpha-alpha.c
+++ b/test/operator-alpha-alpha.c
@@ -93,9 +93,9 @@ subdraw (cairo_t *cr, int width, int height)
cairo_surface_t *bg, *fg;
bg = cairo_surface_create_similar (cairo_get_target (cr),
- CAIRO_CONTENT_COLOR_ALPHA, SIZE * STEPS, SIZE * STEPS);
+ CAIRO_CONTENT_ALPHA, SIZE * STEPS, SIZE * STEPS);
fg = cairo_surface_create_similar (cairo_get_target (cr),
- CAIRO_CONTENT_COLOR_ALPHA, SIZE * STEPS, SIZE * STEPS);
+ CAIRO_CONTENT_ALPHA, SIZE * STEPS, SIZE * STEPS);
bgcr = cairo_create (bg);
fgcr = cairo_create (fg);
cairo_scale (bgcr, SIZE, SIZE);