From: Holger Schemel Date: Thu, 25 Apr 2024 05:54:31 +0000 (+0200) Subject: removed unused array for SDL key state X-Git-Tag: 4.4.0.0-test-1~46 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=edaa850fd2d2cae7ec31961fae3d56487e710c71;p=rocksndiamonds.git removed unused array for SDL key state --- 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);