From f75fd4cb31c3e7efe80b08dbdf3058aa341a1802 Mon Sep 17 00:00:00 2001 From: hnt_ts Date: Sat, 23 Aug 2008 18:59:49 +0000 Subject: [PATCH] http://forums.3drealms.com/vb/showpost.php?p=746876&postcount=26 Since EDuke32 can't display properly Chinese and Russian fonts, it will try to use English key names when possible. git-svn-id: https://svn.eduke32.com/eduke32@1009 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/winlayer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/polymer/build/src/winlayer.c b/polymer/build/src/winlayer.c index 96668b27a..6e7149d23 100644 --- a/polymer/build/src/winlayer.c +++ b/polymer/build/src/winlayer.c @@ -1398,6 +1398,11 @@ static void GetKeyNames(void) CharToOem(key.tszName, tbuf); strncpy((char *)keynames[i], tbuf, sizeof(keynames[i])-1); + + tbuf[0] = 0; + GetKeyNameText((i>128?(i+128):i)<<16, tbuf, sizeof(keynames[i])-1); +// initprintf("%d %15s %15s\n",i,keynames[i],tbuf); + if(*tbuf)strncpy((char *)keynames[i], tbuf, sizeof(keynames[i])-1); } }