You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This area was last touched in #717, which added a call to SetProcessDpiAwarenessContext(-2). -2 is defined as:
DPI_AWARENESS_CONTEXT_SYSTEM_AWARE
System DPI aware. This window does not scale for DPI changes. It will query for the DPI once and use that value for the lifetime of the process. If the DPI changes, the process will not adjust to the new DPI value. It will be automatically scaled up or down by the system when the DPI changes from the system value.
That sounds reasonable, but on Windows 10 22H2 the setting that I assume corresponds to the "system value" is hidden behind "Advanced scaling settings" and is marked "not recommended". This is the setting I used to use myself (having originally set it when the machine was on Windows 7), and it does work correctly with Toga, though you need to log out and log in again to change it.
However, the per-monitor scaling settings are much more prominent, and more convenient since they don't require logging out. So most users will use those settings and leave the "system value" at 100%. And this causes Toga apps to appear blurry, as shown in #704.
So we should probably switch to DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE or DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2, and do whatever's necessary to keep our internal idea of the DPI up to date.
The text was updated successfully, but these errors were encountered:
This area was last touched in #717, which added a call to
SetProcessDpiAwarenessContext(-2)
. -2 is defined as:That sounds reasonable, but on Windows 10 22H2 the setting that I assume corresponds to the "system value" is hidden behind "Advanced scaling settings" and is marked "not recommended". This is the setting I used to use myself (having originally set it when the machine was on Windows 7), and it does work correctly with Toga, though you need to log out and log in again to change it.
However, the per-monitor scaling settings are much more prominent, and more convenient since they don't require logging out. So most users will use those settings and leave the "system value" at 100%. And this causes Toga apps to appear blurry, as shown in #704.
So we should probably switch to DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE or DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2, and do whatever's necessary to keep our internal idea of the DPI up to date.
The text was updated successfully, but these errors were encountered: