summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2001-04-01 20:30:02 +0000
committermickey <mickey@openbsd.org>2001-04-01 20:30:02 +0000
commit2dc1bfe43e5a1735a0100a89fc91f5a585ae2c1f (patch)
tree82bde8ba9a16b0a9eab63350dca8b1eaa9fc690a
parentspelling. (diff)
downloadwireguard-openbsd-2dc1bfe43e5a1735a0100a89fc91f5a585ae2c1f.tar.xz
wireguard-openbsd-2dc1bfe43e5a1735a0100a89fc91f5a585ae2c1f.zip
if we have a secondary fontset loaded and it
does mapchar for it w /the same success as primary, prefer secondary mapping. this fixes non-lat char display. from Igor Grabin <violent@death.kiev.ua>
-rw-r--r--sys/dev/ic/vga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c
index 1e287acbcd3..30426df6abb 100644
--- a/sys/dev/ic/vga.c
+++ b/sys/dev/ic/vga.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vga.c,v 1.21 2001/03/22 12:43:47 mickey Exp $ */
+/* $OpenBSD: vga.c,v 1.22 2001/04/01 20:30:02 mickey Exp $ */
/* $NetBSD: vga.c,v 1.28.2.1 2000/06/30 16:27:47 simonb Exp $ */
/*
@@ -1227,7 +1227,7 @@ vga_mapchar(id, uni, index)
KASSERT(VGA_SCREEN_CANTWOFONTS(scr->pcs.type));
res2 = _vga_mapchar(id, scr->fontset2, uni, &idx2);
}
- if (res2 > res1) {
+ if (res2 >= res1) {
*index = idx2 | 0x0800; /* attribute bit 3 */
return (res2);
}