summaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2021-05-23 20:58:26 +0000
committerIan C <ianc@noddybox.co.uk>2021-05-23 20:58:26 +0000
commita4614438629c66914a6b8ee9696fe85eb5f4c4b0 (patch)
treecf8c7f82d1683cefd0c3b9aba6760913d3baa43b /src/gui.c
parent52d944a701d685ae8a91fe2f38485c4c61827d88 (diff)
Updates for SDL2HEADmaster
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui.c b/src/gui.c
index 19d6135..153081f 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -342,8 +342,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);
@@ -372,7 +370,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))
{
@@ -383,8 +381,6 @@ const char *GUIInputString(const char *prompt, const char *orig)
}
}
- SDL_EnableUNICODE(0);
-
return buff;
}