mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
95865cb1bf
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.
11 lines
164 B
Plaintext
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);
|
|
}
|
|
}
|
|
}
|