mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-03 17:21:11 +00:00
3080e2974d
The goal is to generate an offscreen at 1x scale. When not ceil()ing the numbers the offscreen code would do it *and* adjust the scale accordingly, so we'd end up with something like a 1.01x scale. And that would cause the code to reenter this codepath with the goal to generate an offscreen at 1x scale. And indeed, this would lead to infinite recursion. Tests included. Fixes #6553
15 lines
300 B
Plaintext
15 lines
300 B
Plaintext
color {
|
|
bounds: 0 0 3 2;
|
|
color: rgb(0,0,0);
|
|
}
|
|
transform {
|
|
transform: scale(2);
|
|
child: texture-scale {
|
|
bounds: 0 0 1.5 1;
|
|
filter: nearest;
|
|
texture: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQImWNoYGAAAAGEAIGs40g+\
|
|
AAAAAElFTkSuQmCC\
|
|
");
|
|
}
|
|
}
|