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();
|
||||
|
||||
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
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue