From 10901f07322df101dcde60ef960410c3d00973e1 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Wed, 5 Nov 2025 18:47:28 +0100 Subject: [PATCH] Camera_app: fix API --- .../apps/com.micropythonos.camera/assets/camera_app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 03ba1687..f243fb00 100644 --- a/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py +++ b/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py @@ -154,7 +154,8 @@ class CameraApp(Activity): print("camera app cleanup done.") def set_image_size(self): - target_h = mpos.ui.vertical_resolution + disp = lv.display_get_default() + target_h = disp.get_vertical_resolution() target_w = target_h if target_w == self.width and target_h == self.height: print("Target width and height are the same as native image, no scaling required.")