diff options
author | 2024-02-22 17:53:17 +0100 | |
---|---|---|
committer | 2024-02-22 17:53:17 +0100 | |
commit | 2f289af93c0bfef51698e1aca50696aef1cc6ecc (patch) | |
tree | 39f311815030e8a4408cf26475ef29d255f60622 | |
parent | ff49f581fa153e12e0160353fe348e4289a0837e (diff) | |
parent | 2faabe6a45e8e947548cb03007ba3c3216afb4b7 (diff) | |
download | iced-2f289af93c0bfef51698e1aca50696aef1cc6ecc.tar.gz iced-2f289af93c0bfef51698e1aca50696aef1cc6ecc.tar.bz2 iced-2f289af93c0bfef51698e1aca50696aef1cc6ecc.zip |
Merge pull request #2282 from iced-rs/fix/tiny-skia-strokes
Fix `iced_tiny_skia` clipping line strokes
Diffstat (limited to '')
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | tiny_skia/src/backend.rs | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a07cb919..16a69a7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ Many thanks to... - WebAssembly platform. [#2271](https://github.com/iced-rs/iced/pull/2271) - Decouple `Key` from `keyboard::Modifiers` and apply them to `text` in `KeyboardInput`. [#2238](https://github.com/iced-rs/iced/pull/2238) - Text insertion not being prioritized in `TextInput` and `TextEditor`. [#2278](https://github.com/iced-rs/iced/pull/2278) +- `iced_tiny_skia` clipping line strokes. [#2282](https://github.com/iced-rs/iced/pull/2282) Many thanks to... diff --git a/tiny_skia/src/backend.rs b/tiny_skia/src/backend.rs index 5d3a7a6f..b6487b38 100644 --- a/tiny_skia/src/backend.rs +++ b/tiny_skia/src/backend.rs @@ -674,8 +674,8 @@ impl Backend { let physical_bounds = (Rectangle { x: bounds.x(), y: bounds.y(), - width: bounds.width(), - height: bounds.height(), + width: bounds.width().max(1.0), + height: bounds.height().max(1.0), } * transformation) * scale_factor; |