diff --git a/MUNGA_L4/L4VB16.h b/MUNGA_L4/L4VB16.h index 5c79c90..e1954ce 100644 --- a/MUNGA_L4/L4VB16.h +++ b/MUNGA_L4/L4VB16.h @@ -308,6 +308,26 @@ private: SplitViewCount }; +public: + //------------------------------------------------------------------ + // Glass size of one secondary display, in whatever units the caller + // asked for (canvas units while clamping, device pixels on return). + //------------------------------------------------------------------ + struct GlassSize + { + int w, h; + }; + +protected: + //------------------------------------------------------------------ + // The six displays sized for a given canvas scale, honouring the + // player's per-display scaling and clamped to keep the pod + // arrangement legal. Every layout goes through here, first and + // resized alike, so the two can never disagree. + //------------------------------------------------------------------ + static void + CockpitGlassSizes(int scale, GlassSize sizes[SplitViewCount]); + void FillSplitMFD( SplitViewID view,