From a3db12f322aa541d3171e647826c59d3fd9135c4 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Fri, 28 Nov 2025 09:56:05 +0100 Subject: [PATCH] Fix image resolution setting --- .../apps/com.micropythonos.camera/assets/camera_app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py b/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py index 920eec12..6f4f8fe6 100644 --- a/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py +++ b/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py @@ -190,10 +190,7 @@ class CameraApp(Activity): disp = lv.display_get_default() target_h = disp.get_vertical_resolution() #target_w = disp.get_horizontal_resolution() - self.button_width - 5 # leave 5px for border - target_w = target_h # leave 5px for border - if target_w == self.width and target_h == self.height: - print("Target width and height are the same as native image, no scaling required.") - return + target_w = target_h # square print(f"scaling to size: {target_w}x{target_h}") scale_factor_w = round(target_w * 256 / self.width) scale_factor_h = round(target_h * 256 / self.height)