From 15d2a8724930bfb3d87f20b286391d4133d42d98 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 23 May 2021 20:45:19 +0000 Subject: Updates for SDL2 --- src/spec.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/spec.c') diff --git a/src/spec.c b/src/spec.c index 3a9b295..7066292 100644 --- a/src/spec.c +++ b/src/spec.c @@ -23,8 +23,6 @@ Provides the emulation for the Spectrum */ -static const char ident[]="$Id$"; - #include #include #include @@ -36,8 +34,6 @@ static const char ident[]="$Id$"; #include "exit.h" #include "util.h" -static const char ident_h[]=ESPEC_SPECH; - #ifndef TRUE #define TRUE 1 #endif @@ -138,7 +134,7 @@ static Z80Byte matrix[8]; typedef struct { - SDLKey key; + SDL_Keycode key; int m1,b1,m2,b2; } MatrixMap; @@ -259,8 +255,6 @@ static void DrawScanlineAt(int y, int sline) if (aline>=0 && alinekey.repeat) + { + return; + } + m=keymap; while(m->key!=SDLK_UNKNOWN) -- cgit v1.2.3