Skip to content

Commit

Permalink
Fix credits position
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSimek committed May 21, 2022
1 parent f337606 commit 80cf6d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/character_selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 80cf6d5

Please sign in to comment.