From ec4d1d7fa18fc8aa58762e35efa9730684264fac Mon Sep 17 00:00:00 2001 From: Cyd Date: Sun, 12 Jul 2026 14:27:14 -0500 Subject: [PATCH] Recenter the map glass under the upper-center MFD The side-button columns widened the map window, drifting the glass right of center; shift the default position left by one column width. Co-Authored-By: Claude Fable 5 --- MUNGA_L4/L4VB16.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/MUNGA_L4/L4VB16.cpp b/MUNGA_L4/L4VB16.cpp index 5d27a5e..fc19932 100644 --- a/MUNGA_L4/L4VB16.cpp +++ b/MUNGA_L4/L4VB16.cpp @@ -3895,11 +3895,16 @@ SVGA16::SVGA16( "MFD lower right", init_width, init_height, cell_w, cell_h, grid_x + 2 * (cell_w + frame_w), row2_y, MFDSplitView::MFDStrips, 0x07); - // map is portrait: source rotated 90 degrees clockwise + // map is portrait: source rotated 90 degrees clockwise; shift left + // by one side-button column so the GLASS (not the window) centers + // under the upper-center MFD + int map_col_w = cell_h / 8; + if (map_col_w < 20) map_col_w = 20; + if (map_col_w > 40) map_col_w = 40; splitView[SplitMap] = new MFDSplitView( "Map", init_height, init_width, cell_h, cell_w, - grid_x + (cell_w + frame_w) + (cell_w - cell_h) / 2, row2_y, + grid_x + (cell_w + frame_w) + (cell_w - cell_h) / 2 - (map_col_w + 8), row2_y, MFDSplitView::SideColumns, 0x10, 0x18); DEBUG_STREAM << "SVGA16: split views active - 5 MFD windows + rotated map, cockpit buttons on (scale "