summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Assmann <sassmann@kpanic.de>2019-02-22 13:29:17 +0100
committerAmadeusz Sławiński <amade@asmblr.net>2019-03-17 14:31:45 +0100
commit7fc842ddc6e5905da2c5961547e3ff7385bbcc44 (patch)
tree15b75ead4b2bc381f87d1936d7e010d07018abdc
parentd2d33f664132e9473c62f37a4758a047fa83eb7a (diff)
downloadscreen-7fc842ddc6e5905da2c5961547e3ff7385bbcc44.tar.gz
fix UTF-8 characters with more than 2 bytes
Characters are stored as uint32 nowadays. Looking at the lower bytes only seems to be an oversight from the fontx clean up. Fixes: f18f5d0da1d4 get rid of fontx
-rw-r--r--src/display.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c
index 0e28448..3bfa12a 100644
--- a/src/display.c
+++ b/src/display.c
@@ -431,7 +431,6 @@ static void RAW_PUTCHAR(uint32_t c)
{
if (D_encoding == UTF8) {
- c = (c & 255) | (unsigned char)D_rend.font << 8;
if (D_mbcs) {
c = D_mbcs;
if (D_x == D_width)