Skip to content

Commit 10901f0

Browse files
Camera_app: fix API
1 parent 8b5d836 commit 10901f0

File tree

1 file changed

+2
-1
lines changed
  • internal_filesystem/apps/com.micropythonos.camera/assets

1 file changed

+2
-1
lines changed

internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ def onStop(self, screen):
154154
print("camera app cleanup done.")
155155

156156
def set_image_size(self):
157-
target_h = mpos.ui.vertical_resolution
157+
disp = lv.display_get_default()
158+
target_h = disp.get_vertical_resolution()
158159
target_w = target_h
159160
if target_w == self.width and target_h == self.height:
160161
print("Target width and height are the same as native image, no scaling required.")

0 commit comments

Comments
 (0)