hannesmann / vanillafixes

Client modification for WoW 1.6.1-1.12.1 to eliminate stutter and animation lag
MIT License
151 stars 20 forks source link

How about use DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE instead of V2 #61

Closed allfoxwy closed 1 week ago

allfoxwy commented 2 weeks ago

By https://learn.microsoft.com/en-us/windows/win32/hidpi/dpi-awareness-context

DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 requires Windows 10 1703. And in fact we didn't implement anything it provides.

DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE is already enough to disable automatic scaling. It requires Windows 10 1607.

I think lower the requirement is better.

hannesmann commented 1 week ago

SetProcessDPIAware takes care of scaling the game window (this is the method DXVK uses). The only advantage of DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 is that it makes the message boxes in the launcher DPI-aware.