mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 07:38:22 +02:00
test: exercise ps crash with single stop gradients
PS crashes only when using the source operator, as it will otherwise fallback to rasterization of the gradients.
This commit is contained in:
parent
a0f8cfe646
commit
7a024bc206
8 changed files with 2 additions and 2 deletions
BIN
test/linear-gradient-one-stop.argb32.ref.png
Normal file
BIN
test/linear-gradient-one-stop.argb32.ref.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 225 B |
|
|
@ -45,7 +45,7 @@ draw (cairo_t *cr, int width, int height)
|
|||
CAIRO_EXTEND_PAD
|
||||
};
|
||||
|
||||
cairo_test_paint_checkered (cr);
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||
|
||||
cairo_translate (cr, PAD, PAD);
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 344 B |
BIN
test/linear-gradient-one-stop.rgb24.ref.png
Normal file
BIN
test/linear-gradient-one-stop.rgb24.ref.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 174 B |
BIN
test/radial-gradient-one-stop.argb32.ref.png
Normal file
BIN
test/radial-gradient-one-stop.argb32.ref.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
|
|
@ -78,7 +78,7 @@ draw (cairo_t *cr, int width, int height)
|
|||
CAIRO_EXTEND_PAD
|
||||
};
|
||||
|
||||
cairo_test_paint_checkered (cr);
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||
|
||||
for (j = 0; j < NUM_EXTEND; j++) {
|
||||
for (i = 0; i < NUM_GRADIENTS; i++) {
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 KiB |
BIN
test/radial-gradient-one-stop.rgb24.ref.png
Normal file
BIN
test/radial-gradient-one-stop.rgb24.ref.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Loading…
Add table
Reference in a new issue