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.
This commit is contained in:
Andrea Canciani 2011-01-05 16:00:37 +01:00
parent 45505fc5fb
commit 2e75bf5a25

View file

@ -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);