fix(tiny-skia): correct stroke bounds calculation
This commit is contained in:
parent
c99f4d08f0
commit
a50a56a29d
1 changed files with 4 additions and 4 deletions
|
|
@ -538,10 +538,10 @@ impl Engine {
|
||||||
let bounds = path.bounds();
|
let bounds = path.bounds();
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
x: bounds.x(),
|
x: bounds.x() - stroke.width / 2.0,
|
||||||
y: bounds.y(),
|
y: bounds.y() - stroke.width / 2.0,
|
||||||
width: bounds.width(),
|
width: bounds.width() + stroke.width,
|
||||||
height: bounds.height(),
|
height: bounds.height() + stroke.width,
|
||||||
} * transformation
|
} * transformation
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue