Deleted Added
full compact
daemon_saver.c (42749) daemon_saver.c (43673)
1/*-
2 * Copyright (c) 1997 Sandro Sigala, Brescia, Italy.
3 * Copyright (c) 1997 Chris Shenton
4 * Copyright (c) 1995 S ren Schmidt
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 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) 1997 Sandro Sigala, Brescia, Italy.
3 * Copyright (c) 1997 Chris Shenton
4 * Copyright (c) 1995 S ren Schmidt
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 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: daemon_saver.c,v 1.13 1999/01/11 03:18:45 yokota Exp $
28 * $Id: daemon_saver.c,v 1.14 1999/01/17 14:25:08 yokota Exp $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/module.h>
34#include <sys/malloc.h>
35#include <sys/kernel.h>
36#include <sys/sysctl.h>

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

194 static int dxdir = 1, dydir = 1;
195 static int moved_daemon = 0;
196 static int xoff, yoff, toff;
197 static int xlen, ylen, tlen;
198 scr_stat *scp = cur_console;
199 int min, max;
200
201 if (blank) {
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/module.h>
34#include <sys/malloc.h>
35#include <sys/kernel.h>
36#include <sys/sysctl.h>

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

194 static int dxdir = 1, dydir = 1;
195 static int moved_daemon = 0;
196 static int xoff, yoff, toff;
197 static int xlen, ylen, tlen;
198 scr_stat *scp = cur_console;
199 int min, max;
200
201 if (blank) {
202 if (adp->va_mode_flags & V_INFO_GRAPHICS)
202 if (adp->va_info.vi_flags & V_INFO_GRAPHICS)
203 return EAGAIN;
204 if (blanked == 0) {
205 window = (u_short *)adp->va_window;
206 /* clear the screen and set the border color */
207 fillw(((FG_LIGHTGREY|BG_BLACK) << 8) | scr_map[0x20],
208 window, scp->xsize * scp->ysize);
209 set_border(scp, 0);
210 xlen = ylen = tlen = 0;

--- 142 unchanged lines hidden ---
203 return EAGAIN;
204 if (blanked == 0) {
205 window = (u_short *)adp->va_window;
206 /* clear the screen and set the border color */
207 fillw(((FG_LIGHTGREY|BG_BLACK) << 8) | scr_map[0x20],
208 window, scp->xsize * scp->ysize);
209 set_border(scp, 0);
210 xlen = ylen = tlen = 0;

--- 142 unchanged lines hidden ---