Skip to content

Commit

Permalink
Last fix?
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Cecile <[email protected]>
  • Loading branch information
Olle-Lukowski and alice-i-cecile authored Nov 4, 2023
1 parent 496c8ad commit c45d382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/texture/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ impl Image {
/// Returns the aspect ratio (width / height) of a 2D image.
#[inline]
pub fn aspect_ratio(&self) -> AspectRatio {
AspectRatio::new(self.width() as f32, self.height() as f32)
AspectRatio::from_pixels(self.width(), self.height())
}

/// Returns the size of a 2D image as f32.
Expand Down

0 comments on commit c45d382

Please sign in to comment.