From bb9d3b287ccd38bba548f90fb250ab88c950a6d4 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Fri, 8 Feb 2002 16:46:27 +0000 Subject: vagfb_setcolor() needs to enter entries into the software copy of the palette so that it can be restored correctly. --- sys/arch/sparc64/dev/vgafb.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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); } -- cgit v1.2.3