We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b5d836 commit 10901f0Copy full SHA for 10901f0
1 file changed
internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py
@@ -154,7 +154,8 @@ def onStop(self, screen):
154
print("camera app cleanup done.")
155
156
def set_image_size(self):
157
- target_h = mpos.ui.vertical_resolution
+ disp = lv.display_get_default()
158
+ target_h = disp.get_vertical_resolution()
159
target_w = target_h
160
if target_w == self.width and target_h == self.height:
161
print("Target width and height are the same as native image, no scaling required.")
0 commit comments