From cdc42d64643585780f4868b68e3e1a3a706efcc6 Mon Sep 17 00:00:00 2001 From: Josh Megnauth Date: Thu, 14 Sep 2023 01:25:40 -0400 Subject: Assert dimensions of quads are normal in `iced_tiny_skia` --- tiny_skia/src/backend.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tiny_skia/src/backend.rs b/tiny_skia/src/backend.rs index ea4a3ec6..468bcb7e 100644 --- a/tiny_skia/src/backend.rs +++ b/tiny_skia/src/backend.rs @@ -155,6 +155,15 @@ impl Backend { border, shadow, } => { + debug_assert!( + bounds.width.is_normal(), + "Quad with non-normal width!" + ); + debug_assert!( + bounds.height.is_normal(), + "Quad with non-normal height!" + ); + let physical_bounds = (*bounds + translation) * scale_factor; if !clip_bounds.intersects(&physical_bounds) { -- cgit From d9b7090936b7e477d9b64087d4eedc3708ff0e86 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 31 Jan 2024 21:10:49 +0100 Subject: Update `CHANGELOG` --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2149e4fc..d7b15827 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,8 +44,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Use workspace dependencies and package inheritance. [#2069](https://github.com/iced-rs/iced/pull/2069) - Update `wgpu` to `0.17`. [#2065](https://github.com/iced-rs/iced/pull/2065) - Support automatic style type casting for `Button`. [#2046](https://github.com/iced-rs/iced/pull/2046) -- `with_clip` and `with_save` in `Frame` can now return the data of the provided closure. [#1994](https://github.com/iced-rs/iced/pull/1994) -- `Arc` and `arc::Elliptical` now use `Radians` for angle fields. [#2027](https://github.com/iced-rs/iced/pull/2027) +- Make `with_clip` and `with_save` in `Frame` able to return the data of the provided closure. [#1994](https://github.com/iced-rs/iced/pull/1994) +- Use `Radians` for angle fields in `Arc` and `arc::Elliptical`. [#2027](https://github.com/iced-rs/iced/pull/2027) +- Assert dimensions of quads are normal in `iced_tiny_skia`. [#2082](https://github.com/iced-rs/iced/pull/2082) ### Fixed - Clipping of `TextInput` selection. [#2199](https://github.com/iced-rs/iced/pull/2199) -- cgit