From 21aeaab088cb32f53da8ec4efd556e267e0bf63d Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Sat, 3 Aug 2024 10:47:56 +0200 Subject: [PATCH] correct y --- src/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Game.cpp b/src/Game.cpp index 37581ab..db011c7 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -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;