Skip to content

Disable Windows DPI scaling

Juhu requested to merge Juhu/windows_manifest into master

This patch disables Windows' automatic DPI scaling in DarkPlaces since it isn't really suitable for fullscreen games.

Description

Microsoft Windows automatically scales applications according to the system defined scaling factor. The scaling factor is set either manually or automatically according to the display DPI (hence it usually only performs scaling on laptops or other high DPI displays). This behavior is enabled by default and has to be disabled explicitly. This means Windows will stretch the DarkPlaces window (even in fullscreen mode) causing the game to look blurry. It also causes the video settings to display a weird resolution, in my case 1536x864 (that's 1920x1080 at 125% scaling). The solution is to embed a file into the executable telling Windows that it is DPI aware (i.e. doesn't require scaling).

Note: A workaround is to disable this in the Windows compatibility settings of the specific executable or to set the system scaling factor to 100% but actually fixing the executable is the best option.

Merge request reports