Deleted Added
full compact
snake_saver.c (50477) snake_saver.c (56043)
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 * $FreeBSD: head/sys/dev/syscons/snake/snake_saver.c 50477 1999-08-28 01:08:13Z peter $
28 * $FreeBSD: head/sys/dev/syscons/snake/snake_saver.c 56043 2000-01-15 15:25:43Z yokota $
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>

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

74 outb(0x43f, 0x42);
75 outb(0x0c17, inb(0xc17) & ~0x08);
76 outb(0x43f, 0x40);
77 }
78#endif /* PC98 */
79 sc_vtb_clear(&scp->scr, sc->scr_map[0x20],
80 (FG_LIGHTGREY | BG_BLACK) << 8);
81 (*vidsw[adp->va_index]->set_hw_cursor)(adp, -1, -1);
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>

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

74 outb(0x43f, 0x42);
75 outb(0x0c17, inb(0xc17) & ~0x08);
76 outb(0x43f, 0x40);
77 }
78#endif /* PC98 */
79 sc_vtb_clear(&scp->scr, sc->scr_map[0x20],
80 (FG_LIGHTGREY | BG_BLACK) << 8);
81 (*vidsw[adp->va_index]->set_hw_cursor)(adp, -1, -1);
82 set_border(scp, 0);
82 sc_set_border(scp, 0);
83 dirx = (scp->xpos ? 1 : -1);
84 diry = (scp->ypos ?
85 scp->xsize : -scp->xsize);
86 for (f=0; f< messagelen; f++)
87 savs[f] = scp->xpos + scp->ypos*scp->xsize;
88 sc_vtb_putc(&scp->scr, savs[0], sc->scr_map[*save],
89 (FG_LIGHTGREY | BG_BLACK) << 8);
90 blanked = 1;

--- 58 unchanged lines hidden ---
83 dirx = (scp->xpos ? 1 : -1);
84 diry = (scp->ypos ?
85 scp->xsize : -scp->xsize);
86 for (f=0; f< messagelen; f++)
87 savs[f] = scp->xpos + scp->ypos*scp->xsize;
88 sc_vtb_putc(&scp->scr, savs[0], sc->scr_map[*save],
89 (FG_LIGHTGREY | BG_BLACK) << 8);
90 blanked = 1;

--- 58 unchanged lines hidden ---