Jelajahi Sumber

Fixed centering of scenario information window

Ivan Savenko 2 tahun lalu
induk
melakukan
3d30e04184
2 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 1 0
      ChangeLog.md
  2. 4 0
      client/lobby/CScenarioInfoScreen.cpp

+ 1 - 0
ChangeLog.md

@@ -3,6 +3,7 @@
 ### GENERAL:
 * Fixed movement cost penalty from terrain
 * Fixed empty Black Market on game start
+* Fixed centering of scenario information window
 * Fixed blocked progress in Launcher on language detection failure
 * Launcher will now correctly handle selection of Data directory in H3 install
 

+ 4 - 0
client/lobby/CScenarioInfoScreen.cpp

@@ -26,6 +26,10 @@
 CScenarioInfoScreen::CScenarioInfoScreen()
 {
 	OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
+	pos.w = 800;
+	pos.h = 600;
+	pos = center();
+
 	localSi = new StartInfo(*LOCPLINT->cb->getStartInfo());
 	localMi = new CMapInfo();
 	localMi->mapHeader = std::unique_ptr<CMapHeader>(new CMapHeader(*LOCPLINT->cb->getMapHeader()));