-
Notifications
You must be signed in to change notification settings - Fork 3
Very blurry with screen scaling #10
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
Comments
@stianhoiland I could jump in here if you like. There are two possibilities:
Do you have any preference? |
@eugenesvk Nice catch. This is something cmdtab should support. @german-one Thanks for the offer of assistance and quick summary! My eyes are crossing over trying to wrap my head around the various DPI-related APIs. Here are the right docs, and this seems to be a very complete reference implementation, though all too verbose and extensive for my liking—I like small surfaces :) I can't shoulder this change at the moment. I will however review any pull requests for this feature. In particular, since cmdtab is such a long-running process, its implementation should support WM_DPICHANGED. EDIT: It is hard for me to state a preference since I can't visualize the overall impact of the alternatives. I may prefer the manifest solution if it is the original DPI awareness mechanism. What's the significance of requiring that automatic manifest creation be turned off? |
I really don't think that you want to process the WM_DPICHANGED message. Let me try to explain it a little more in detail ...
Well, this is rather Microsoft's preference. They may have a reason 🤷♂️ The manifest file would look like so ... <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
</requestedPrivileges>
</security>
</trustInfo>
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">system</dpiAwareness>
</asmv3:windowsSettings>
</asmv3:application>
</assembly> ... and get added to the resource script like this ...
Otherwise there would be two manifest files which makes the linker throw because it can handle only one. Only for completeness and in case you change your mind - we can get the same effect by just calling one of the below API. Preferably after the AlreadyRunning clause in
|
Both icons and text look blurry at 150% scaling
The text was updated successfully, but these errors were encountered: