Skip to content

Commit 885e4a2

Browse files
aevyrieWeibye
andcommitted
Apply suggestions from code review
Co-authored-by: Andreas Weibye <[email protected]>
1 parent de28fd0 commit 885e4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_render/src/camera/camera.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl Default for Camera {
106106
impl Camera {
107107
/// Converts a physical size in this `Camera` to a logical size.
108108
#[inline]
109-
pub fn physical_to_logical(&self, input: UVec2) -> Option<Vec2> {
109+
pub fn to_logical(&self, physical_size: UVec2) -> Option<Vec2> {
110110
let scale = self.computed.target_info.as_ref()?.scale_factor;
111111
Some((input.as_dvec2() / scale).as_vec2())
112112
}

0 commit comments

Comments
 (0)