Fix physical_width getter incorrectly returning the height
This commit is contained in:
parent
92d647d1a6
commit
766bb7f5cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue