Skip to content

Commit c1f2dd5

Browse files
committed
Use Pascal Casing inside Get-CurrentResolution.psm1
- Remove unused variable $bounds
1 parent 57c0341 commit c1f2dd5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/lib/ui/Get-CurrentResolution.psm1

+4-5
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ function Get-CurrentResolution() {
88
Add-Type -AssemblyName System.Windows.Forms
99

1010
# 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
11+
$PrimaryScreen = [System.Windows.Forms.Screen]::PrimaryScreen
12+
$WorkingArea = $PrimaryScreen.WorkingArea
1413

15-
$ScreenWidth = $workingArea.Width
16-
$ScreenHeight = $workingArea.Height
14+
$ScreenWidth = $WorkingArea.Width
15+
$ScreenHeight = $WorkingArea.Height
1716

1817
Write-Verbose "Primary Monitor: Width: $ScreenWidth, Height: $ScreenHeight (DPI Scaled)"
1918

0 commit comments

Comments
 (0)