From 2e75bf5a25cc5b7fd33702e2b1474f94caeab158 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Wed, 5 Jan 2011 16:00:37 +0100 Subject: [PATCH] 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. --- test/operator-alpha-alpha.c | 4 ++-- 1 file 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);