diff options
author | 2002-02-08 16:46:26 +0000 | |
---|---|---|
committer | 2002-02-08 16:46:26 +0000 | |
commit | 80a4a1d62b4a94a6634a8ba0ff7b89bcd8550f3e (patch) | |
tree | eca70d52b29d76f9846c17ad6a85100d719f4ea6 | |
parent | required piece to compile the lib (diff) | |
download | wireguard-openbsd-80a4a1d62b4a94a6634a8ba0ff7b89bcd8550f3e.tar.xz wireguard-openbsd-80a4a1d62b4a94a6634a8ba0ff7b89bcd8550f3e.zip |
vagfb_setcolor() needs to enter entries into the software copy of the
palette so that it can be restored correctly.
-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); } |