PathOfBuildingCommunity / PathOfBuilding-SimpleGraphic

Other
7 stars 21 forks source link

fix: point-filter window for even DPI factors #45

Closed zao closed 8 months ago

zao commented 8 months ago

We emulate DPI scaling by drawing to a smaller render target and scale it up with bilinear filtering to the desired DPI scale factor configured in the OS.

Windows seems to do crisper point filtering (nearest neighbour) for scale factors that are multiples of 100%.

This commit alters our behaviour to select the filter mode based on the DPI scale factor, opting for point filtering for non-fractional scaling.