System: Windows 10 at 175% display scaling, XYplorer 28.30.1600 (64 bit).
I have a Per-Monitor-V2 (PMv2) DPI aware PySide6 application, compiled with Nuitka.
When launched from Windows Explorer it becomes PMv2 correctly.
When the same EXE is launched from XYplorer with high DPI scaling override set to System (Enhanced), SetProcessDpiAwarenessContext(PMv2) returns ERROR_ACCESS_DENIED. Even an EXE with an explicit PMv2 manifest reports PROCESS_DPI_UNAWARE when launched from XYplorer (or from a command prompt launched by XYplorer).
Disabling System (Enhanced) fixes it.
System/System (Enhanced) DPI scaling affects DPI awareness of applications launched from XYplorer
Forum rules
READ THIS AND DO IT!!!
Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
-
Giannib
- Posts: 9
- Joined: 03 Oct 2020 15:55
- Location: Window 10, 175% scaling
-
admin
- Site Admin
- Posts: 67059
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: System/System (Enhanced) DPI scaling affects DPI awareness of applications launched from XYplorer
Interesting but that looks like a Windows bug. XY uses a normal manifest. No hacks.
FAQ | XY News RSS | XY X
-
Giannib
- Posts: 9
- Joined: 03 Oct 2020 15:55
- Location: Window 10, 175% scaling
Re: System/System (Enhanced) DPI scaling affects DPI awareness of applications launched from XYplorer
The problem seems to be more general, and also related to my previous post (#p238727), where the solution to the narrow tree view and small icons problem was to set DPI scaling override to System (Enhanced).
However, with DPI scaling set to System (Enhanced), GUI text becomes less crisp, both in XYplorer and all applications started from XYplorer, including my own app. With DPI scaling set to Application (or off), everything is crisp, but my old problem comes back. You can already clearly see the difference in crispness in the screenshots of the previous post.
I've provided a few new screenshots to show the difference in crispness:
- "XYplorer - DPI System.png" - About box with DPI set to System (= not crisp)
- "XYplorer - DPI Application.png" - About box with DPI set to Application (= crisp)
- "DPI System and Application.png" - Shows a fragment of the tree, with DPI set to System on the left, and DPI set to Application on the right
Once you notice it, the crispness issue is even worse than it appears in the small screenshots.
Summary:
DPI to System -> text is not crisp problem: YES; narrow tree and small icons problem: NO.
DPI to Application -> text is not crisp problem: NO; narrow tree and small icons problem: YES.
However, with DPI scaling set to System (Enhanced), GUI text becomes less crisp, both in XYplorer and all applications started from XYplorer, including my own app. With DPI scaling set to Application (or off), everything is crisp, but my old problem comes back. You can already clearly see the difference in crispness in the screenshots of the previous post.
I've provided a few new screenshots to show the difference in crispness:
- "XYplorer - DPI System.png" - About box with DPI set to System (= not crisp)
- "XYplorer - DPI Application.png" - About box with DPI set to Application (= crisp)
- "DPI System and Application.png" - Shows a fragment of the tree, with DPI set to System on the left, and DPI set to Application on the right
Once you notice it, the crispness issue is even worse than it appears in the small screenshots.
Summary:
DPI to System -> text is not crisp problem: YES; narrow tree and small icons problem: NO.
DPI to Application -> text is not crisp problem: NO; narrow tree and small icons problem: YES.
To see the attached files, you need to log into the forum.
-
admin
- Site Admin
- Posts: 67059
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: System/System (Enhanced) DPI scaling affects DPI awareness of applications launched from XYplorer
Yes, reduced crispness is the price of "System (Enhanced)". When the glow-up is complete, all will be good and crisp.
FAQ | XY News RSS | XY X
XYplorer Beta Club