-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
System zoom issue #2865
Comments
Please post a screenshot, I'm not sure to understand the problem. |
https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#the-quality-is-low
|
This is indeed a way, but every time I download a new version of scrcpy, I need to reset these things. It's very uncomfortable. It's best that the software itself can adapt to the scaling of resolution |
Sure. But I don't know how to do it. The solutions often talk about some "manifest", but they assume the app is built with VisualStudio: https://stackoverflow.com/a/46433887/1987178 I also found: https://stackoverflow.com/a/51748836/1987178 But I have no real Windows to test this. Help welcome. |
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setprocessdpiawarenesscontext Is it possible to use this "application manifest" the way scrcpy is built? Or is it specific to microsoft tools? Otherwise, maybe we can still call (cc @Biswa96 and @npes87184, as Windows users+developers you might have a clue 😉) |
It is possible to use tools in gcc or llvm. I know some projects that uses DPI awareness
Let me reproduce the issue like OP. |
Add a windows manifest to set the DPI awareness by default: <https://docs.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process> Refs #2865 <#2865>
Thank you, now I think I know how to do it: @BraveHL Could you please test this binary:
|
@rom1v I did the test for you and it worked very well. |
Thank you @Helaer 👍 After your message, I was wondering how to test in practice, but I finally found: in my Windows VM I set scaling to 150% in Settings > System > Display, then I run scrcpy, and it works correctly 🎉 Indeed, without the fix, the result is awful 😱 |
Add a windows manifest to set the DPI awareness by default: <https://docs.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process> Refs #40 <#40> Fixes #2865 <#2865>
ad11c5b merged into |
Environment
Describe the bug
A clear and concise description of what the bug is.
On errors, please provide the output of the console (and
adb logcat
if relevant).Please do not post screenshots of your terminal, just post the content as text instead.
The resolution of my computer is very high, so the zoom ratio of the system is enlarged to 175%. At this time, the screen projection interface opened by scrcpy does not zoom with the system. This problem makes me very uncomfortable. Please repair and optimize it as soon as possible
The text was updated successfully, but these errors were encountered: