summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Tanner Rogalsky <tanner@tannerrogalsky.com>2021-01-14 10:38:12 -0500
committerLibravatar Tanner Rogalsky <tanner@tannerrogalsky.com>2021-01-14 10:38:12 -0500
commit766bb7f5ccf4ac9294fab92a5126c60c0fa8d818 (patch)
treee8af9535f33cd9fd153d1979478525ef8e2dc8c5 /graphics
parent92d647d1a6145e19ef9f540e02faef6a892f51fa (diff)
downloadiced-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.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`].