Skip to content

Commit

Permalink
satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Suibeom committed Jan 13, 2025
1 parent 558a35a commit 9cd42f3
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 @@ -593,7 +593,7 @@ impl Camera {

// Rescale by the rendering target's scaling factor if we have it.
let scale_factor = self.target_scaling_factor().unwrap_or(1.);
viewport_position = viewport_position / scale_factor;
viewport_position /= scale_factor;

// Flip the Y co-ordinate origin from the top to the bottom.
viewport_position.y = target_size.y - viewport_position.y;
Expand Down

0 comments on commit 9cd42f3

Please sign in to comment.