Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

鸿蒙OS兼容请求 #80

Open
Youjin1985 opened this issue Jun 7, 2024 · 0 comments
Open

鸿蒙OS兼容请求 #80

Youjin1985 opened this issue Jun 7, 2024 · 0 comments

Comments

@Youjin1985
Copy link

Youjin1985 commented Jun 7, 2024

Sorry I can't create pul request, so I'll describe issue and fix there:
On HarmonyOS, controller cannot get device resolution when it calls get_device_size()
Fix:
in scripts/and_controller.py
change line 101
return map(int, result.split(": ")[1].split("x"))
to
return map(int, result.split('\n')[0].split(": ")[1].split("x"))

Otherwise its not usable with HarmonyOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant