From edaa850fd2d2cae7ec31961fae3d56487e710c71 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 25 Apr 2024 07:54:31 +0200 Subject: [PATCH] removed unused array for SDL key state --- src/game_bd/bd_graphics.c | 4 ---- src/game_bd/bd_graphics.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/game_bd/bd_graphics.c b/src/game_bd/bd_graphics.c index 4ae1390a..aab43301 100644 --- a/src/game_bd/bd_graphics.c +++ b/src/game_bd/bd_graphics.c @@ -58,8 +58,6 @@ static int scroll_x, scroll_y; // quit, global variable which is set to true if the application should quit boolean gd_quit = FALSE; -const byte *gd_keystate; - static int cell_size = 0; // graphic info for game objects/frames and players/actions/frames @@ -113,8 +111,6 @@ void set_play_area(int w, int h) void gd_init_keystate(void) { set_play_area(SXSIZE, SYSIZE); - - gd_keystate = SDL_GetKeyboardState(NULL); } /* diff --git a/src/game_bd/bd_graphics.h b/src/game_bd/bd_graphics.h index dd9eed1a..2e7392c7 100644 --- a/src/game_bd/bd_graphics.h +++ b/src/game_bd/bd_graphics.h @@ -23,8 +23,6 @@ extern Bitmap *gd_screen_bitmap; -extern const unsigned char *gd_keystate; - typedef unsigned int GdColor; void set_cell_size(int s); -- 2.34.1