summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2019-03-14 21:32:20 -0400
committerAndrew Opalach <andrew@akon.city> 2019-03-14 21:32:20 -0400
commit7649bf08fe950563a6ac4c7816f3bf187779c38a (patch)
tree90c81ea8ced3df97c8269019340e1fe347295ef0 /frontend
parent27a9537652d975477f664c266f8c3b7a56a25529 (diff)
downloadcetris-7649bf08fe950563a6ac4c7816f3bf187779c38a.tar.gz
cetris-7649bf08fe950563a6ac4c7816f3bf187779c38a.tar.bz2
cetris-7649bf08fe950563a6ac4c7816f3bf187779c38a.zip
fix build errors
Diffstat (limited to 'frontend')
-rw-r--r--frontend/ncurses/ncurses_ui.c14
-rw-r--r--frontend/sdl/sdl_ui.c4
2 files changed, 9 insertions, 9 deletions
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;