summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-06-09 21:30:20 +0700
committerLibravatar Héctor Ramón <hector0193@gmail.com>2021-06-09 21:30:20 +0700
commit5224cc7f26fc1549555c5bf3b25a1a80c9d26cd0 (patch)
tree8cae756966060b7a24aa5c3a48f43b6e520e10aa /core
parent656dc357f87849f2506ce402f8484a7d7484f250 (diff)
downloadiced-5224cc7f26fc1549555c5bf3b25a1a80c9d26cd0.tar.gz
iced-5224cc7f26fc1549555c5bf3b25a1a80c9d26cd0.tar.bz2
iced-5224cc7f26fc1549555c5bf3b25a1a80c9d26cd0.zip
Floor `width` and `height` in `Rectangle::floor`
Diffstat (limited to 'core')
-rw-r--r--core/src/rectangle.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/rectangle.rs b/core/src/rectangle.rs
index 0a7f5fe2..4e082051 100644
--- a/core/src/rectangle.rs
+++ b/core/src/rectangle.rs
@@ -105,8 +105,8 @@ impl Rectangle<f32> {
Rectangle {
x: self.x as u32,
y: self.y as u32,
- width: self.width.ceil() as u32,
- height: self.height.ceil() as u32,
+ width: self.width as u32,
+ height: self.height as u32,
}
}
}