diff options
author | 2002-06-27 19:45:03 +0000 | |
---|---|---|
committer | 2002-06-27 19:45:03 +0000 | |
commit | 30b45bfb39d938659647e2d77f95b82fd551b1cd (patch) | |
tree | f654177efed0022a487622abd100de8044abbca5 | |
parent | There is absolutely no reason for the "tempname" or dfd variables (diff) | |
download | wireguard-openbsd-30b45bfb39d938659647e2d77f95b82fd551b1cd.tar.xz wireguard-openbsd-30b45bfb39d938659647e2d77f95b82fd551b1cd.zip |
Do not muck with the color palette unless the console depth is 8 bit.
32 bit depth console and wsfb now work (If firmware is forced to that depth).
-rw-r--r-- | sys/arch/macppc/pci/vgafb.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c index 5e51da48f7a..8a5dd46d180 100644 --- a/sys/arch/macppc/pci/vgafb.c +++ b/sys/arch/macppc/pci/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.13 2002/05/22 21:00:03 miod Exp $ */ +/* $OpenBSD: vgafb.c,v 1.14 2002/06/27 19:45:03 drahn Exp $ */ /* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */ /* @@ -288,7 +288,10 @@ vgafb_common_setup(iot, memt, vc, iobase, iosize, membase, memsize, mmiobase, mm vc->vc_at = 0x00 | 0xf; /* black bg|white fg */ vc->vc_so_at = 0x00 | 0xf | 0x80; /* black bg|white fg|blink */ #endif - vgafb_restore_default_colors(vc); + if (cons_depth == 8) { + vgafb_restore_default_colors(vc); + } + } void @@ -369,7 +372,9 @@ vgafb_ioctl(v, cmd, data, flag, p) * the correct palette. */ - vgafb_restore_default_colors(vc); + if (cons_depth == 8) { + vgafb_restore_default_colors(vc); + } /* now that we have done our work, let the wscons * layer handle this ioctl |