summaryrefslogtreecommitdiffstats
path: root/tiny_skia
diff options
context:
space:
mode:
Diffstat (limited to 'tiny_skia')
-rw-r--r--tiny_skia/src/geometry.rs18
1 files changed, 1 insertions, 17 deletions
diff --git a/tiny_skia/src/geometry.rs b/tiny_skia/src/geometry.rs
index 532a53cd..0d5fff62 100644
--- a/tiny_skia/src/geometry.rs
+++ b/tiny_skia/src/geometry.rs
@@ -174,23 +174,7 @@ impl geometry::frame::Backend for Frame {
size: Size,
stroke: impl Into<Stroke<'a>>,
) {
- let Some(path) = convert_path(&Path::rectangle(top_left, size))
- .and_then(|path| path.transform(self.transform))
- else {
- return;
- };
-
- let stroke = stroke.into();
- let skia_stroke = into_stroke(&stroke);
-
- let mut paint = into_paint(stroke.style);
- paint.shader.transform(self.transform);
-
- self.primitives.push(Primitive::Stroke {
- path,
- paint,
- stroke: skia_stroke,
- });
+ self.stroke(&Path::rectangle(top_left, size), stroke);
}
fn fill_text(&mut self, text: impl Into<geometry::Text>) {