Fix character selection position

See #3
This commit is contained in:
Jan Šimek 2022-05-21 00:31:18 -07:00
parent f3376060f5
commit efec8a3f52
1 changed files with 3 additions and 1 deletions

View File

@ -243,7 +243,9 @@ bool characterSelectorWindowInit()
return false;
}
gCharacterSelectorWindow = windowCreate(0, 0, CS_WINDOW_WIDTH, CS_WINDOW_HEIGHT, _colorTable[0], 0);
int characterSelectorWindowX = (screenGetWidth() - CS_WINDOW_WIDTH) / 2;
int characterSelectorWindowY = (screenGetHeight() - CS_WINDOW_HEIGHT) / 2;
gCharacterSelectorWindow = windowCreate(characterSelectorWindowX, characterSelectorWindowY, CS_WINDOW_WIDTH, CS_WINDOW_HEIGHT, _colorTable[0], 0);
if (gCharacterSelectorWindow == -1) {
goto err;
}