Merge pull request #700 from TannerRogalsky/fix_viewport_getter
Fix `physical_width` getter incorrectly returning the height
This commit is contained in:
commit
049999b982
@ -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`].
|
||||
|
Loading…
Reference in New Issue
Block a user