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 <noreply@anthropic.com>
This commit is contained in:
Cyd
2026-07-12 14:27:14 -05:00
co-authored by Claude Fable 5
parent c1990d0ffa
commit ec4d1d7fa1
+7 -2
View File
@@ -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 "