Fix physical_width
getter incorrectly returning the height
This commit is contained in:
parent
92d647d1a6
commit
766bb7f5cc
@ -31,7 +31,7 @@ impl Viewport {
|
|||||||
|
|
||||||
/// Returns the physical width of the [`Viewport`].
|
/// Returns the physical width of the [`Viewport`].
|
||||||
pub fn physical_width(&self) -> u32 {
|
pub fn physical_width(&self) -> u32 {
|
||||||
self.physical_size.height
|
self.physical_size.width
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the physical height of the [`Viewport`].
|
/// Returns the physical height of the [`Viewport`].
|
||||||
|
Loading…
Reference in New Issue
Block a user