shithub: choc

Download patch

ref: 3fbef9d2788184c491c120d00e6d5bccecc4310c
parent: 240a1cfcca8f53a114a4302e93af793be21809d0
author: Simon Howard <[email protected]>
date: Tue May 23 18:51:09 EDT 2006

Make TXT_GetChar return the unicode value of the key pressed. For text
boxes.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 519

--- a/textscreen/txt_main.c
+++ b/textscreen/txt_main.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: txt_main.c 513 2006-05-23 00:04:27Z fraggle $
+// $Id: txt_main.c 519 2006-05-23 22:51:09Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -261,7 +261,7 @@
       case SDLK_KP_MINUS:    return KEYP_MINUS;
       case SDLK_KP_DIVIDE:   return KEYP_DIVIDE;
 
-      default:               return tolower(sym->sym);
+      default:               return sym->unicode;
     }
 }