From 7649bf08fe950563a6ac4c7816f3bf187779c38a Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Thu, 14 Mar 2019 21:32:20 -0400 Subject: fix build errors --- frontend/ncurses/ncurses_ui.c | 14 +++++++------- frontend/sdl/sdl_ui.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'frontend') diff --git a/frontend/ncurses/ncurses_ui.c b/frontend/ncurses/ncurses_ui.c index 98f2b4b..9c95227 100644 --- a/frontend/ncurses/ncurses_ui.c +++ b/frontend/ncurses/ncurses_ui.c @@ -35,17 +35,17 @@ " \\--------------------/" #else #define BLOCK "[]" -#define PLAY_FIELD_STR " ┏━━━━━━━━━━━┓ ┏━━━━━━━━━\n"\ +#define PLAY_FIELD_STR " ┏━━━━━━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━┓ \n"\ " ┃ ┃ ┃ ┃ \n"\ - " ┃ ┃ ━━━━━━━━━┛ \n"\ + " ┃ ┃ ┗━━━━━━━━━━━━━━━┛ \n"\ " ┃ ┃ \n"\ " ┃ ┃ \n"\ - " ┃ ┃ ┏━━━━━━┓ \n"\ + " ┃ ┃ ┏━━━━━━━━━━━┓ \n"\ " ┃ ┃ ┃ ┃ \n"\ " ┃ ┃ ┃ ┃ \n"\ " ┃ ┃ ┃ ┃ \n"\ " ┃ ┃ ┃ ┃ \n"\ - " ┃ ┃ ┗━━━━━━┛ \n"\ + " ┃ ┃ ┗━━━━━━━━━━━┛ \n"\ " ┃ ┃ \n"\ " ┃ ┃ \n"\ " ┃ ┃ \n"\ @@ -56,7 +56,7 @@ " ┃ ┃ \n"\ " ┃ ┃ \n"\ " ┃ ┃ \n"\ - " ┗━━━━━━━━━━━┛ " + " ┗━━━━━━━━━━━━━━━━━━━━┛ " #endif #define X_OFFSET 8 @@ -105,7 +105,7 @@ void draw_board() { attron(COLOR_PAIR(game.piece_queue[index].c)); for (int x = 0; x < 4; x++) { for (int y = 0; y < 4; y++) { - if (game.piece_queue[index].mat[y][x]) { + if (game.piece_queue[index].m[y][x]) { if (game.piece_queue[index].t == I) { mvaddstr(6 + y, (x * 2) + 36, BLOCK); } else { @@ -162,7 +162,7 @@ int main(void) { } break; default: - clear_held_key(&game.input); + clear_held_key(&game); } update_game_tick(&game); erase(); diff --git a/frontend/sdl/sdl_ui.c b/frontend/sdl/sdl_ui.c index c5c9917..40f7aab 100644 --- a/frontend/sdl/sdl_ui.c +++ b/frontend/sdl/sdl_ui.c @@ -95,7 +95,7 @@ void draw_stuff() { SDL_Rect p = {294, 20, 25, 25}; for (int x = 0; x < 4; x++) { for (int y = 0; y < 4; y++) { - if (g.piece_queue[index].mat[y][x]) { + if (g.piece_queue[index].m[y][x]) { p.x = 319 + (x * 25); p.y = 30 + (y * 25); if (g.piece_queue[index].t == I) { @@ -204,7 +204,7 @@ int main(void) { case SDLK_DOWN: case SDLK_SPACE: case SDLK_UP: - clear_held_key(&g.input); + clear_held_key(&g); break; } break; -- cgit v1.2.3-101-g0448