Commit f5fd6db
committed
fix: point-filter window for even DPI factors
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.1 parent b8503a5 commit f5fd6db
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
| 1137 | + | |
1137 | 1138 | | |
1138 | 1139 | | |
1139 | 1140 | | |
| |||
1144 | 1145 | | |
1145 | 1146 | | |
1146 | 1147 | | |
1147 | | - | |
1148 | | - | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
1149 | 1151 | | |
1150 | 1152 | | |
1151 | 1153 | | |
| |||
0 commit comments