We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57c0341 commit c1f2dd5Copy full SHA for c1f2dd5
src/lib/ui/Get-CurrentResolution.psm1
@@ -8,12 +8,11 @@ function Get-CurrentResolution() {
8
Add-Type -AssemblyName System.Windows.Forms
9
10
# Get the primary screen's working area, which takes DPI scaling into account
11
- $primaryScreen = [System.Windows.Forms.Screen]::PrimaryScreen
12
- $bounds = $primaryScreen.Bounds
13
- $workingArea = $primaryScreen.WorkingArea
+ $PrimaryScreen = [System.Windows.Forms.Screen]::PrimaryScreen
+ $WorkingArea = $PrimaryScreen.WorkingArea
14
15
- $ScreenWidth = $workingArea.Width
16
- $ScreenHeight = $workingArea.Height
+ $ScreenWidth = $WorkingArea.Width
+ $ScreenHeight = $WorkingArea.Height
17
18
Write-Verbose "Primary Monitor: Width: $ScreenWidth, Height: $ScreenHeight (DPI Scaled)"
19
0 commit comments