diff options
author | 2021-01-14 10:38:12 -0500 | |
---|---|---|
committer | 2021-01-14 10:38:12 -0500 | |
commit | 766bb7f5ccf4ac9294fab92a5126c60c0fa8d818 (patch) | |
tree | e8af9535f33cd9fd153d1979478525ef8e2dc8c5 /graphics | |
parent | 92d647d1a6145e19ef9f540e02faef6a892f51fa (diff) | |
download | iced-766bb7f5ccf4ac9294fab92a5126c60c0fa8d818.tar.gz iced-766bb7f5ccf4ac9294fab92a5126c60c0fa8d818.tar.bz2 iced-766bb7f5ccf4ac9294fab92a5126c60c0fa8d818.zip |
Fix `physical_width` getter incorrectly returning the height
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/viewport.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/viewport.rs b/graphics/src/viewport.rs index 78d539af..2c0b541a 100644 --- a/graphics/src/viewport.rs +++ b/graphics/src/viewport.rs @@ -31,7 +31,7 @@ impl Viewport { /// Returns the physical width of the [`Viewport`]. pub fn physical_width(&self) -> u32 { - self.physical_size.height + self.physical_size.width } /// Returns the physical height of the [`Viewport`]. |