Deploy: drop -SwapMFD switch -- edit the RECTS x-coords to swap MFD heads (simpler)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Cyd
2026-07-09 19:55:06 -05:00
co-authored by Claude Fable 5
parent 2d5f1562bd
commit d1635d4694
+5 -7
View File
@@ -12,9 +12,7 @@
# .\pod_deploy.ps1 -Conf ..\net_rp.conf (Red Planet)
param(
[string]$Conf = "$PSScriptRoot\..\net_loop.conf",
[switch]$NoSound,
[switch]$SwapMFD # swap the two MFD heads' screen positions (win3<->win4)
# if the 3-color / 2-color order was remembered reversed
[switch]$NoSound
)
$ErrorActionPreference = 'Stop'
@@ -30,10 +28,10 @@ $MFD2 = '2080,0,640,480' # Head A, 2-color (LL/LR) -> win3
# 3 head windows (win0/win3/win4), not the 7-window debug spread.
$env:VPX_COCKPIT = '1'
$env:VPX_WIN0 = $RADAR
# win4 = 3-color MFD head (HEAD B), win3 = 2-color MFD head (HEAD A).
# $MFD3 is the 1440 slot, $MFD2 the 2080 slot; -SwapMFD trades them.
if ($SwapMFD) { $env:VPX_WIN4 = $MFD2; $env:VPX_WIN3 = $MFD3 }
else { $env:VPX_WIN4 = $MFD3; $env:VPX_WIN3 = $MFD2 }
$env:VPX_WIN4 = $MFD3 # 3-color MFD head (HEAD B)
$env:VPX_WIN3 = $MFD2 # 2-color MFD head (HEAD A)
# To swap the two MFD heads, just swap the x-coords in the $MFD3/$MFD2 lines
# above (1440 <-> 2080) -- the RECTS block is the single source of truth.
# Main render window size = the main display's native res.
$env:BRIDGE_W = "$MAIN_W"
$env:BRIDGE_H = "$MAIN_H"