summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-01-15 02:02:26 +0100
committerLibravatar GitHub <noreply@github.com>2021-01-15 02:02:26 +0100
commit049999b9827c6b863f2090b9c07129829e2084b5 (patch)
treee8af9535f33cd9fd153d1979478525ef8e2dc8c5
parent92d647d1a6145e19ef9f540e02faef6a892f51fa (diff)
parent766bb7f5ccf4ac9294fab92a5126c60c0fa8d818 (diff)
downloadiced-049999b9827c6b863f2090b9c07129829e2084b5.tar.gz
iced-049999b9827c6b863f2090b9c07129829e2084b5.tar.bz2
iced-049999b9827c6b863f2090b9c07129829e2084b5.zip
Merge pull request #700 from TannerRogalsky/fix_viewport_getter
Fix `physical_width` getter incorrectly returning the height
-rw-r--r--graphics/src/viewport.rs2
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`].