Merge pull request #700 from TannerRogalsky/fix_viewport_getter

Fix `physical_width` getter incorrectly returning the height
This commit is contained in:
Héctor Ramón 2021-01-15 02:02:26 +01:00 committed by GitHub
commit 049999b982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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