Commit 4ee403f
committed
fix: modify getDisplayDPI() to handle Windows DPI misreporting
- Added check for Windows systems where Toolkit.getScreenResolution()
incorrectly reports 96 DPI on high-DPI screens.
- Force 2x scaling for Windows if DPI is 96 to ensure correct display scaling.
- Maintain normal 2x scaling for DPI >= 144, fallback to 1x for lower DPI.1 parent c39d62c commit 4ee403f
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
287 | 293 | | |
288 | 294 | | |
| 295 | + | |
289 | 296 | | |
290 | 297 | | |
291 | 298 | | |
| |||
0 commit comments