From 019ddbb80bf9d8a41af4eb83f5289446adfcbed4 Mon Sep 17 00:00:00 2001 From: peri4 Date: Wed, 27 Apr 2022 13:35:27 +0300 Subject: [PATCH] TileInput fix --- libs/console/piscreentiles.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libs/console/piscreentiles.cpp b/libs/console/piscreentiles.cpp index 0e579636..de0cfea4 100644 --- a/libs/console/piscreentiles.cpp +++ b/libs/console/piscreentiles.cpp @@ -689,13 +689,7 @@ bool TileInput::keyEvent(PIKbdListener::KeyEvent key) { case PIKbdListener::F12: break; default: - PIChar tc -#ifdef WINDOWS - = PIChar((ushort)key.key); -#else - = PIChar::fromUTF8((char *)&(key.key)); -#endif - text.insert(cur, tc); + text.insert(cur, PIChar((ushort)key.key)); cur++; oo++; if (cur - offset >= lwid - osp) offset += oo;