gtk/testsuite/gsk/compare/shadow-clip-contents.node
Benjamin Otte 95865cb1bf gsk: Fix clipping error when drawing shadows
When shadows were offset - in particular when offset so the original
source was out of bounds of the result - the drawing code would create a
pattern for it that didn't include enough of it to compose a shadow.

Fix that by not creating those patterns anymore, but instead drawing the
source (potentially multiple times) at the required offsets.

While that does more drawing, it simplifies the shadow node draw code,
and that's the primary goal of the Cairo rendering.

Test included.
2023-09-18 07:53:03 +02:00

11 lines
164 B
Plaintext

clip {
clip: 0 0 50 50;
child: shadow {
shadows: rgb(0,0,0) -20 -20;
child: color {
bounds: 40 40 50 50;
color: rgb(255,0,204);
}
}
}