diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-09-07 03:25:54 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-09-07 03:25:54 +0000 |
commit | 4d2c2a0851aac3d4e78bcd6660aa3128d4cb8473 (patch) | |
tree | f5f3eb46f0ebba5fa51f2bacb4990037b3b19d64 /sys | |
parent | afba2b22d4412a96b233ae07cdb6197928c722cd (diff) |
Fix cursor unplot bug. pointer to cursor was not initialized, thus it
would unmap the cursor at y,y rather than the real position.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc/pci/vgafb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/powerpc/pci/vgafb.c b/sys/arch/powerpc/pci/vgafb.c index 4cda4b33275..59e76ae9255 100644 --- a/sys/arch/powerpc/pci/vgafb.c +++ b/sys/arch/powerpc/pci/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.1 2000/09/06 02:12:14 rahnds Exp $ */ +/* $OpenBSD: vgafb.c,v 1.2 2000/09/07 03:25:53 rahnds Exp $ */ /* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */ /* @@ -444,6 +444,9 @@ vgafb_cnattach(iot, memt, pc, bus, device, function) ri->rc_sp->depth = cons_depth; ri->rc_sp->linelongs = cons_linebytes /4; /* XXX */ ri->rc_sp->pixels = (void *)cons_display_mem_h; + ri->rc_crow = ri->rc_ccol = -1; + ri->rc_crowp = &ri->rc_crow; + ri->rc_ccolp = &ri->rc_ccol; rcons_init(ri, 160, 160); |