commit 88f0d0ab
Automatically place the game centered vertically.
Changed files
| M | source/code/main.cpp before |
diff --git a/source/code/main.cpp b/source/code/main.cpp
index 5f7d60e..d6e4a2e 100644
--- a/source/code/main.cpp
+++ b/source/code/main.cpp
@@ -1000,8 +1000,8 @@ static void StartTwoPlayerVs() {
}
static void MoveBlockGameSdls( BlockGameSdl& game1, BlockGameSdl& game2 ) {
- game1.SetTopXY(50, 100);
- game2.SetTopXY(globalData.xsize-500, 100);
+ game1.SetTopXY(50, globalData.ysize/2-284);
+ game2.SetTopXY(globalData.xsize-500, globalData.ysize/2-284);
}
struct globalConfig {