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:
+7
-2
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user