From f14a357c9b3f5a70967dac297c1fdfb2914bcc1a Mon Sep 17 00:00:00 2001 From: ardocrat Date: Fri, 3 May 2024 21:07:07 +0300 Subject: [PATCH] camera: fix image crop --- src/gui/views/camera.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/views/camera.rs b/src/gui/views/camera.rs index 5c25202..1b5000c 100644 --- a/src/gui/views/camera.rs +++ b/src/gui/views/camera.rs @@ -78,7 +78,7 @@ impl CameraContent { ui.vertical_centered(|ui| { egui::Image::from_texture(sized_image) // Setup to make image cropped at center of square. - .uv(Rect::from([Pos2::new(0.125, 0.0), Pos2::new(1.125, 1.0)])) + .uv(Rect::from([Pos2::new(0.25, 0.0), Pos2::new(1.0, 1.0)])) .max_height(ui.available_width()) .maintain_aspect_ratio(false) .shrink_to_fit()