Fix physical_width getter incorrectly returning the height

This commit is contained in:
Tanner Rogalsky 2021-01-14 10:38:12 -05:00
parent 92d647d1a6
commit 766bb7f5cc

View File

@ -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`].