summaryrefslogtreecommitdiff
path: root/frontend/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/sdl')
-rw-r--r--frontend/sdl/sdl_ui.c4
1 files changed, 2 insertions, 2 deletions
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;