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/gui.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/gui.c') diff --git a/src/gui.c b/src/gui.c index 37a48ec..6904d33 100644 --- a/src/gui.c +++ b/src/gui.c @@ -23,8 +23,6 @@ Basic GUI routines */ -static const char ident[]="$Id$"; - #include #include #include @@ -41,8 +39,6 @@ static const char ident[]="$Id$"; #include "exit.h" #include "util.h" -static const char ident_h[]=ESPEC_GUI_H; - /* ---------------------------------------- MACROS */ @@ -400,8 +396,6 @@ const char *GUIInputString(const char *prompt, const char *orig) strncat(buff,orig,40); len=strlen(buff); - SDL_EnableUNICODE(1); - while(!done) { GFXRect(0,y_pos,GFX_WIDTH,8,BLACK,TRUE); @@ -430,7 +424,7 @@ const char *GUIInputString(const char *prompt, const char *orig) break; default: - c=(unsigned char)e->key.keysym.unicode; + c=(unsigned char)e->key.keysym.sym; if (len<40 && isprint(c)) { @@ -441,8 +435,6 @@ const char *GUIInputString(const char *prompt, const char *orig) } } - SDL_EnableUNICODE(0); - return buff; } -- cgit v1.2.3