Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Weibye <[email protected]>
  • Loading branch information
aevyrie and Weibye authored Jun 6, 2022
1 parent de28fd0 commit d1c1c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/camera/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Default for Camera {
impl Camera {
/// Converts a physical size in this `Camera` to a logical size.
#[inline]
pub fn physical_to_logical(&self, input: UVec2) -> Option<Vec2> {
pub fn to_logical(&self, physical_size: UVec2) -> Option<Vec2> {
let scale = self.computed.target_info.as_ref()?.scale_factor;
Some((input.as_dvec2() / scale).as_vec2())
}
Expand Down

0 comments on commit d1c1c4a

Please sign in to comment.