From d1c1c4a33409d74c328a67858248dae638de40b9 Mon Sep 17 00:00:00 2001 From: Aevyrie Date: Mon, 6 Jun 2022 11:49:39 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Andreas Weibye <13300393+Weibye@users.noreply.github.com> --- crates/bevy_render/src/camera/camera.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/camera/camera.rs b/crates/bevy_render/src/camera/camera.rs index 2de7ef9490bbde..e34b7913278d79 100644 --- a/crates/bevy_render/src/camera/camera.rs +++ b/crates/bevy_render/src/camera/camera.rs @@ -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 { + pub fn to_logical(&self, physical_size: UVec2) -> Option { let scale = self.computed.target_info.as_ref()?.scale_factor; Some((input.as_dvec2() / scale).as_vec2()) }