correct y
This commit is contained in:
parent
9e3bac710f
commit
21aeaab088
@ -95,7 +95,7 @@ void Game::draw_guesses(SDL_Renderer *renderer) {
|
|||||||
size_t len = strlen(word);
|
size_t len = strlen(word);
|
||||||
int total_width = (len - 1) * STEP_SIZE + CHAR_SIZE;
|
int total_width = (len - 1) * STEP_SIZE + CHAR_SIZE;
|
||||||
int start_x = (SCREEN_SIZE.x - total_width) / 2;
|
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++) {
|
for (int i = 0; i < len; i++) {
|
||||||
int here = start_x + i * STEP_SIZE;
|
int here = start_x + i * STEP_SIZE;
|
||||||
|
Loading…
Reference in New Issue
Block a user