summaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2021-05-23 20:45:19 +0000
committerIan C <ianc@noddybox.co.uk>2021-05-23 20:45:19 +0000
commit15d2a8724930bfb3d87f20b286391d4133d42d98 (patch)
tree339a39d4c78c6ee78946bdf952a2bcd4a4ca84f0 /src/gui.c
parent6c1f2fec30886e845db47c14cd284103d9f55189 (diff)
Updates for SDL2HEADmaster
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c10
1 files changed, 1 insertions, 9 deletions
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 <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;
}