summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-04-01 20:30:03 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-04-01 20:30:03 +0000
commita424445f049e11d1da3ea8254456bd421055984c (patch)
tree5a1e7e822ff97f4f717e9374b6d3d8129ca94484
parent7f6e04802838451739c248b988cffb2dcb816554 (diff)
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);
}