summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-06-27 19:45:04 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-06-27 19:45:04 +0000
commit7ec2067d784df4a1cb61851a986bcb9ed5f5cf74 (patch)
treeb901c07d3121e149761af6f3516b4da29235a23d /sys
parenta009fa2d284fd5d346018267853525de33a4ec4d (diff)
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).
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/pci/vgafb.c11
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