diff options
author | Ian C <ianc@noddybox.co.uk> | 2021-05-23 20:58:26 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2021-05-23 20:58:26 +0000 |
commit | a4614438629c66914a6b8ee9696fe85eb5f4c4b0 (patch) | |
tree | cf8c7f82d1683cefd0c3b9aba6760913d3baa43b /src/gui.c | |
parent | 52d944a701d685ae8a91fe2f38485c4c61827d88 (diff) |
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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; } |