Merge pull request #2282 from iced-rs/fix/tiny-skia-strokes
Fix `iced_tiny_skia` clipping line strokes
This commit is contained in:
commit
2f289af93c
2 changed files with 3 additions and 2 deletions
|
|
@ -27,6 +27,7 @@ Many thanks to...
|
||||||
- WebAssembly platform. [#2271](https://github.com/iced-rs/iced/pull/2271)
|
- 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)
|
- 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)
|
- 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...
|
Many thanks to...
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -674,8 +674,8 @@ impl Backend {
|
||||||
let physical_bounds = (Rectangle {
|
let physical_bounds = (Rectangle {
|
||||||
x: bounds.x(),
|
x: bounds.x(),
|
||||||
y: bounds.y(),
|
y: bounds.y(),
|
||||||
width: bounds.width(),
|
width: bounds.width().max(1.0),
|
||||||
height: bounds.height(),
|
height: bounds.height().max(1.0),
|
||||||
} * transformation)
|
} * transformation)
|
||||||
* scale_factor;
|
* scale_factor;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue