Assert dimensions of quads are normal in iced_tiny_skia
This commit is contained in:
parent
66c8a804c6
commit
cdc42d6464
1 changed files with 9 additions and 0 deletions
|
|
@ -155,6 +155,15 @@ impl Backend {
|
||||||
border,
|
border,
|
||||||
shadow,
|
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;
|
let physical_bounds = (*bounds + translation) * scale_factor;
|
||||||
|
|
||||||
if !clip_bounds.intersects(&physical_bounds) {
|
if !clip_bounds.intersects(&physical_bounds) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue