File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -618,10 +618,10 @@ function info_uptime {
618618function info_resolution {
619619 Add-Type - AssemblyName System.Windows.Forms
620620 $monitors = [System.Windows.Forms.Screen ]::AllScreens
621- $scale = (Get-CimInstance - Namespace root\wmi - ClassName WmiMonitorBasicDisplayParams - CimSession $cimSession ).DisplayTransferCharacteristic / 96
621+ $scale = (Get-CimInstance - Namespace root\wmi - ClassName WmiMonitorBasicDisplayParams - CimSession $cimSession ).DisplayTransferCharacteristic
622622
623623 $displays = for ($i = 0 ;$i -lt $monitors.Length ;$i ++ ){
624- " $ ( $monitors [$i ].Bounds.Size.Width * $scale [$i ]) x$ ( $monitors [$i ].Bounds.Size.Height * $scale [$i ]) "
624+ " $ ( $monitors [$i ].Bounds.Size.Width * ( $scale [$i ] / 96 ) ) x$ ( $monitors [$i ].Bounds.Size.Height * ( $scale [$i ] / 96 ) ) "
625625 }
626626
627627 return @ {
You can’t perform that action at this time.
0 commit comments