Skip to content

win32: Add dpi aware manifest config

Eidolon requested to merge win32-dpi-awareness into next

On Windows, the game does not report "High DPI Awareness" (i.e. Retina, Display Zoom), so Windows will scale the window and effectively lie about the real DPI of the display to make its relative size stay the same regardless of Display Zoom, matching a well-behaving High DPI Aware application's sizing behavior.

However, in our case, the game always scale the render relative to the vertical pixel height, and what we actually want is for a 320x200 window to truly be 320x200 on the screen. By informing Windows that we are High DPI Aware, our windows will be precisely the pixel sizes we request. This prevents needing to override the DPI scaling behavior in the exe's properties.

Users wanting the old behavior can still override the DPI scale behavior in the properties, which may be desirable for a bigger window on 4k until we support resolutions past 1920x1200.

Merge request reports

Loading