From 4e2a7ba770061074348c91162ef9c9e28713d912 Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Fri, 4 Aug 2023 13:45:12 +0300 Subject: [PATCH] Fix widescreen UI militia popup box y-coordinate --- Strategic/Map Screen Interface Map.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Strategic/Map Screen Interface Map.cpp b/Strategic/Map Screen Interface Map.cpp index b709c3a02..0ec76fd78 100644 --- a/Strategic/Map Screen Interface Map.cpp +++ b/Strategic/Map Screen Interface Map.cpp @@ -1792,11 +1792,16 @@ void InitializeMilitiaPopup(void) const UINT16 xVal = 330 + xResOffset; const UINT16 yVal = 25 + yResOffset; - if (isWidescreenUI() || iResolution >= _1024x768) + if (iResolution >= _1024x768) { MAP_MILITIA_BOX_POS_X = xVal + 190; MAP_MILITIA_BOX_POS_Y = yVal + 285; } + else if (isWidescreenUI()) + { + MAP_MILITIA_BOX_POS_X = xVal + 190; + MAP_MILITIA_BOX_POS_Y = yVal + 116; + } else if (iResolution >= _800x600) { MAP_MILITIA_BOX_POS_X = xVal + 77;