diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-12-28 14:20:13 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-12-28 14:20:13 +0000 |
| commit | 00e53a11e8adffa0d3dd71af4eefe64f4f5a4de8 (patch) | |
| tree | c6c077fe9a6024d82001c8cb74c4bc2e56a61352 /sys/modules/syscons | |
| parent | 64f6f1fa7e7a1cc96a6af8b0c8f2c3db930bb176 (diff) | |
Notes
Diffstat (limited to 'sys/modules/syscons')
| -rw-r--r-- | sys/modules/syscons/warp/warp_saver.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/modules/syscons/warp/warp_saver.c b/sys/modules/syscons/warp/warp_saver.c index 138b8d4a741b..238657d5f514 100644 --- a/sys/modules/syscons/warp/warp_saver.c +++ b/sys/modules/syscons/warp/warp_saver.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: warp_saver.c,v 1.1 1998/12/27 22:03:09 des Exp $ */ #include <sys/param.h> @@ -47,6 +47,7 @@ static u_char *vid; #define STARS (SPP*(1+2+4+8)) static int star[STARS]; +static u_char save_pal[768]; static u_char warp_pal[768] = { 0x00, 0x00, 0x00, 0x66, 0x66, 0x66, @@ -61,7 +62,7 @@ warp_update(void) { int i, j, k, n; - for (i = k = 1, n = SPP*8; i < 5; i++, n /= 2) + for (i = 1, k = 0, n = SPP*8; i < 5; i++, n /= 2) for (j = 0; j < n; j++, k++) { vid[star[k]] = 0; star[k] += i; @@ -85,10 +86,11 @@ warp_saver(int blank) saved_mode = scp->mode; scp->mode = M_VGA_CG320; scp->status |= SAVER_RUNNING|GRAPHICS_MODE; + save_palette(scp, (char *)save_pal); set_mode(scp); + load_palette(scp, (char *)warp_pal); scrn_blanked++; vid = (u_char *)Crtat; - load_palette(scp, (char *)warp_pal); splx(pl); bzero(vid, SCRW*SCRH); } @@ -105,6 +107,7 @@ warp_saver(int blank) scp->mode = saved_mode; scp->status &= ~(SAVER_RUNNING|GRAPHICS_MODE); set_mode(scp); + load_palette(scp, (char *)save_pal); saved_mode = 0; splx(pl); } |
