Revert "Merge pull request #2962 from iced-rs/fix/blurry-quads"

This reverts commit 03326b955b, reversing
changes made to 7c5a4bc465.
This commit is contained in:
Héctor Ramón Jiménez 2025-05-28 22:51:10 +02:00
parent 6c0962c5c3
commit 9d4e849a0e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
31 changed files with 78 additions and 59 deletions

View file

@ -250,14 +250,11 @@ impl Rectangle<f32> {
return None;
}
let x = (self.x + 0.01).round();
let y = (self.y + 0.01).round();
Some(Rectangle {
x: x as u32,
y: y as u32,
width: ((self.x + self.width + 0.01).round() - x) as u32,
height: ((self.y + self.height + 0.01).round() - y) as u32,
x: self.x as u32,
y: self.y as u32,
width,
height,
})
}