Commit fa6c639
committed
Fix Resolution Bug
- Gets the current resolution scale by getting DisplayTransferCharacteristic from WmiMonitorBasicDisplayParams
- Divides by 96 to get the scale from the given PPI
- ~2x Slower than the current (but broken) implementation w/o PowerShell bottleneck
- 34 ms -> 84 ms
- ~2.7x Faster than lptstr#131 w/o PowerShell bottleneck
- 230 ms1 parent 72c3403 commit fa6c639
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
621 | | - | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
622 | 625 | | |
623 | 626 | | |
624 | 627 | | |
| |||
0 commit comments