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 "