summaryrefslogtreecommitdiff
path: root/display.c
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2014-04-17 14:11:28 +0200
committerAxel Beckert <abe@deuxchevaux.org>2014-04-17 14:11:28 +0200
commitc3927cc39106d6b7cd746109784b6e8af203ec6b (patch)
treec7e4f517ca9a07c0cd8c809da7af0251e8cec6a7 /display.c
parent28a2487f484d19f570280f391f606aeb7fb3fb4a (diff)
downloadscreen-c3927cc39106d6b7cd746109784b6e8af203ec6b.tar.gz
Imported Upstream version 4.2.0upstream/4.2.0
Diffstat (limited to 'display.c')
-rw-r--r--display.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/display.c b/display.c
index 94c05f1..61fff7d 100644
--- a/display.c
+++ b/display.c
@@ -594,7 +594,7 @@ int c;
# ifdef UTF8
if (D_encoding == UTF8)
{
- c = (c & 255) | (unsigned char)D_rend.font << 8;
+ c = (c & 255) | (unsigned char)D_rend.font << 8 | (unsigned char)D_rend.fontx << 16;
# ifdef DW_CHARS
if (D_mbcs)
{
@@ -1882,6 +1882,10 @@ struct mchar *mc;
#ifdef FONT
if (D_rend.font != mc->font)
SetFont(mc->font);
+#ifdef UTF8
+ if (D_encoding == UTF8)
+ D_rend.fontx = mc->fontx;
+#endif
#endif
}
@@ -1934,6 +1938,10 @@ int x;
#ifdef FONT
if (D_rend.font != ml->font[x])
SetFont(ml->font[x]);
+#ifdef UTF8
+ if (D_encoding == UTF8)
+ D_rend.fontx = ml->fontx[x];
+#endif
#endif
}