Deleted Added
full compact
snake_saver.c (42749) snake_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: snake_saver.c,v 1.21 1999/01/11 03:18:52 yokota Exp $
28 * $Id: snake_saver.c,v 1.22 1999/01/17 14:25:19 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>

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

53 int f;
54 scr_stat *scp = cur_console;
55
56/* XXX hack for minimal changes. */
57#define save message
58#define savs messagep
59
60 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>

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

53 int f;
54 scr_stat *scp = cur_console;
55
56/* XXX hack for minimal changes. */
57#define save message
58#define savs messagep
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 <= 0) {
64 window = (u_short *)adp->va_window;
65 fillw(((FG_LIGHTGREY|BG_BLACK)<<8) | scr_map[0x20],
66 window, scp->xsize * scp->ysize);
67 set_border(scp, 0);
68 dirx = (scp->xpos ? 1 : -1);
69 diry = (scp->ypos ?

--- 55 unchanged lines hidden ---
62 return EAGAIN;
63 if (blanked <= 0) {
64 window = (u_short *)adp->va_window;
65 fillw(((FG_LIGHTGREY|BG_BLACK)<<8) | scr_map[0x20],
66 window, scp->xsize * scp->ysize);
67 set_border(scp, 0);
68 dirx = (scp->xpos ? 1 : -1);
69 diry = (scp->ypos ?

--- 55 unchanged lines hidden ---