mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-20 04:40:07 +01:00
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:
parent
45505fc5fb
commit
2e75bf5a25
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue