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/sdl/sdl_ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/sdl') 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