diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-02-08 16:46:27 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-02-08 16:46:27 +0000 |
commit | bb9d3b287ccd38bba548f90fb250ab88c950a6d4 (patch) | |
tree | 8e4c1c61c2b25728c1f1e03c030a964183cd7ed1 /sys/arch | |
parent | 81a8d2a01ae1048b0dc21d33a97d5c60e6099ca6 (diff) |
vagfb_setcolor() needs to enter entries into the software copy of the
palette so that it can be restored correctly.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/dev/vgafb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c index 566a2223b9c..fed90afb065 100644 --- a/sys/arch/sparc64/dev/vgafb.c +++ b/sys/arch/sparc64/dev/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.4 2002/02/05 18:34:39 jason Exp $ */ +/* $OpenBSD: vgafb.c,v 1.5 2002/02/08 16:46:26 jason Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -348,7 +348,7 @@ vgafb_putcmap(sc, cm) b = &sc->sc_cmap_blue[index]; for (i = 0; i < count; i++) { - vgafb_setcolor(sc, index, *r, *g, *b); + OF_call_method("color!", sc->sc_ofhandle, 4, 0, *r, *g, *b, index); r++, g++, b++, index++; } return (0); @@ -360,6 +360,9 @@ vgafb_setcolor(sc, index, r, g, b) unsigned int index; u_int8_t r, g, b; { + sc->sc_cmap_red[index] = r; + sc->sc_cmap_green[index] = g; + sc->sc_cmap_blue[index] = b; OF_call_method("color!", sc->sc_ofhandle, 4, 0, r, g, b, index); } |