Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit10901f0

Browse files
Camera_app: fix API
1 parent8b5d836 commit10901f0

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
defset_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
iftarget_w==self.widthandtarget_h==self.height:
160161
print("Target width and height are the same as native image, no scaling required.")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp