Skip to content

Commit

Permalink
Merge pull request #700 from TannerRogalsky/fix_viewport_getter
Browse files Browse the repository at this point in the history
Fix `physical_width` getter incorrectly returning the height
  • Loading branch information
hecrj authored Jan 15, 2021
2 parents 92d647d + 766bb7f commit 049999b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphics/src/viewport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`].
Expand Down

0 comments on commit 049999b

Please sign in to comment.