correct y

This commit is contained in:
Love 2024-08-03 10:47:56 +02:00
parent 9e3bac710f
commit 21aeaab088

View File

@ -95,7 +95,7 @@ void Game::draw_guesses(SDL_Renderer *renderer) {
size_t len = strlen(word);
int total_width = (len - 1) * STEP_SIZE + CHAR_SIZE;
int start_x = (SCREEN_SIZE.x - total_width) / 2;
int char_y = (SCREEN_SIZE.y / 2) - CHAR_SIZE / 2;
int char_y = (SCREEN_SIZE.y / 4) * 3 - CHAR_SIZE / 2;
for (int i = 0; i < len; i++) {
int here = start_x + i * STEP_SIZE;