diff options
author | Ian C <ianc@noddybox.co.uk> | 2021-05-23 20:45:19 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2021-05-23 20:45:19 +0000 |
commit | 15d2a8724930bfb3d87f20b286391d4133d42d98 (patch) | |
tree | 339a39d4c78c6ee78946bdf952a2bcd4a4ca84f0 /src/gui.c | |
parent | 6c1f2fec30886e845db47c14cd284103d9f55189 (diff) |
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -23,8 +23,6 @@ Basic GUI routines */ -static const char ident[]="$Id$"; - #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -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; } |