summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus/scgdcrndr.c
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2001-12-14 15:27:15 +0000
committernyan <nyan@FreeBSD.org>2001-12-14 15:27:15 +0000
commit8b664dd49d5ecab19f8c50b6da1d7ec6b03b1331 (patch)
tree2086d40e539ed86593d28a6a2f50e1dde4a0a38d /sys/pc98/cbus/scgdcrndr.c
parent538db93281133bc7efa58a3750c50b5533cb0589 (diff)
downloadFreeBSD-src-8b664dd49d5ecab19f8c50b6da1d7ec6b03b1331.zip
FreeBSD-src-8b664dd49d5ecab19f8c50b6da1d7ec6b03b1331.tar.gz
Fixed to draw mouse cursor. The syscons driver for PC98 uses different
attributes from i386. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) MFC after: 3 days
Diffstat (limited to 'sys/pc98/cbus/scgdcrndr.c')
-rw-r--r--sys/pc98/cbus/scgdcrndr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pc98/cbus/scgdcrndr.c b/sys/pc98/cbus/scgdcrndr.c
index 523a3f5..3b863e2 100644
--- a/sys/pc98/cbus/scgdcrndr.c
+++ b/sys/pc98/cbus/scgdcrndr.c
@@ -120,8 +120,8 @@ gdc_txtdraw(scr_stat *scp, int from, int count, int flip)
p = sc_vtb_pointer(&scp->scr, from);
for (; count-- > 0; ++from) {
c = sc_vtb_getc(&scp->vtb, from);
- a = sc_vtb_geta(&scp->vtb, from) ^ 0x4;
- sc_vtb_putchar(&scp->scr, p, c, a);
+ a = sc_vtb_geta(&scp->vtb, from) ^ 0x0800;
+ p = sc_vtb_putchar(&scp->scr, p, c, a);
}
} else {
sc_vtb_copy(&scp->vtb, from, &scp->scr, from, count);
@@ -164,7 +164,7 @@ draw_txtmouse(scr_stat *scp, int x, int y)
at = (y/scp->font_size - scp->yoff)*scp->xsize + x/8 - scp->xoff;
sc_vtb_putc(&scp->scr, at,
sc_vtb_getc(&scp->scr, at),
- sc_vtb_geta(&scp->scr, at) ^ 0x4);
+ sc_vtb_geta(&scp->vtb, at) ^ 0x0800);
}
static void
OpenPOWER on IntegriCloud