Merge pull request #2882 from 7h0ma5/master
Fix stroke bounds calculation and clip transformations in tiny-skia backend
This commit is contained in:
commit
9795a90075
2 changed files with 6 additions and 6 deletions
|
|
@ -538,10 +538,10 @@ impl Engine {
|
|||
let bounds = path.bounds();
|
||||
|
||||
Rectangle {
|
||||
x: bounds.x(),
|
||||
y: bounds.y(),
|
||||
width: bounds.width(),
|
||||
height: bounds.height(),
|
||||
x: bounds.x() - stroke.width / 2.0,
|
||||
y: bounds.y() - stroke.width / 2.0,
|
||||
width: bounds.width() + stroke.width,
|
||||
height: bounds.height() + stroke.width,
|
||||
} * transformation
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ impl Layer {
|
|||
) {
|
||||
self.primitives.push(Item::Group(
|
||||
primitives,
|
||||
clip_bounds,
|
||||
clip_bounds * transformation,
|
||||
transformation,
|
||||
));
|
||||
}
|
||||
|
|
@ -204,7 +204,7 @@ impl Layer {
|
|||
) {
|
||||
self.primitives.push(Item::Cached(
|
||||
primitives,
|
||||
clip_bounds,
|
||||
clip_bounds * transformation,
|
||||
transformation,
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue