Deleted Added
full compact
star_saver.c (42749) star_saver.c (43673)
1/*-
2 * Copyright (c) 1995-1998 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1995-1998 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $Id: star_saver.c,v 1.18 1999/01/11 03:18:53 yokota Exp $
28 * $Id: star_saver.c,v 1.19 1999/01/17 14:25:19 yokota Exp $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/module.h>
35
36#include <machine/md_var.h>

--- 16 unchanged lines hidden (view full) ---

53 scr_stat *scp = cur_console;
54 int cell, i;
55 char pattern[] = {"...........++++*** "};
56 char colors[] = {FG_DARKGREY, FG_LIGHTGREY,
57 FG_WHITE, FG_LIGHTCYAN};
58 static u_short stars[NUM_STARS][2];
59
60 if (blank) {
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/module.h>
35
36#include <machine/md_var.h>

--- 16 unchanged lines hidden (view full) ---

53 scr_stat *scp = cur_console;
54 int cell, i;
55 char pattern[] = {"...........++++*** "};
56 char colors[] = {FG_DARKGREY, FG_LIGHTGREY,
57 FG_WHITE, FG_LIGHTCYAN};
58 static u_short stars[NUM_STARS][2];
59
60 if (blank) {
61 if (adp->va_mode_flags & V_INFO_GRAPHICS)
61 if (adp->va_info.vi_flags & V_INFO_GRAPHICS)
62 return EAGAIN;
63 if (!blanked) {
64 window = (u_short *)adp->va_window;
65 /* clear the screen and set the border color */
66 fillw(((FG_LIGHTGREY|BG_BLACK) << 8) | scr_map[0x20],
67 window, scp->xsize * scp->ysize);
68 set_border(scp, 0);
69 blanked = TRUE;

--- 39 unchanged lines hidden ---
62 return EAGAIN;
63 if (!blanked) {
64 window = (u_short *)adp->va_window;
65 /* clear the screen and set the border color */
66 fillw(((FG_LIGHTGREY|BG_BLACK) << 8) | scr_map[0x20],
67 window, scp->xsize * scp->ysize);
68 set_border(scp, 0);
69 blanked = TRUE;

--- 39 unchanged lines hidden ---