Deleted Added
full compact
syscons.c (27555) syscons.c (27674)
1/*-
2 * Copyright (c) 1992-1997 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) 1992-1997 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: syscons.c,v 1.225 1997/07/15 14:43:22 yokota Exp $
28 * $Id: syscons.c,v 1.226 1997/07/20 14:10:13 bde Exp $
29 */
30
31#include "sc.h"
32#include "apm.h"
33#include "opt_ddb.h"
34#include "opt_syscons.h"
35
36#if NSC > 0

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

114static const u_int n_fkey_tab = sizeof(fkey_tab) / sizeof(*fkey_tab);
115static int delayed_next_scr = FALSE;
116static long scrn_blank_time = 0; /* screen saver timeout value */
117 int scrn_blanked = 0; /* screen saver active flag */
118static long scrn_time_stamp;
119 u_char scr_map[256];
120 u_char scr_rmap[256];
121 char *video_mode_ptr = NULL;
29 */
30
31#include "sc.h"
32#include "apm.h"
33#include "opt_ddb.h"
34#include "opt_syscons.h"
35
36#if NSC > 0

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

114static const u_int n_fkey_tab = sizeof(fkey_tab) / sizeof(*fkey_tab);
115static int delayed_next_scr = FALSE;
116static long scrn_blank_time = 0; /* screen saver timeout value */
117 int scrn_blanked = 0; /* screen saver active flag */
118static long scrn_time_stamp;
119 u_char scr_map[256];
120 u_char scr_rmap[256];
121 char *video_mode_ptr = NULL;
122 int fonts_loaded = 0;
122 int fonts_loaded = 0
123#ifdef STD8X16FONT
124 | FONT_16
125#endif
126 ;
127
123 char font_8[256*8];
124 char font_14[256*14];
128 char font_8[256*8];
129 char font_14[256*14];
125 char font_16[256*16];
130extern unsigned char font_16[256*16];
126 char palette[256*3];
127static char vgaregs[64];
128static char *cut_buffer;
129static u_short mouse_and_mask[16] = {
130 0xc000, 0xe000, 0xf000, 0xf800,
131 0xfc00, 0xfe00, 0xff00, 0xff80,
132 0xfe00, 0x1e00, 0x1f00, 0x0f00,
133 0x0f00, 0x0000, 0x0000, 0x0000

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

2691
2692 /* initialize mapscrn arrays to a one to one map */
2693 for (i=0; i<sizeof(scr_map); i++) {
2694 scr_map[i] = scr_rmap[i] = i;
2695 }
2696
2697 /* Save font and palette if VGA */
2698 if (crtc_vga) {
131 char palette[256*3];
132static char vgaregs[64];
133static char *cut_buffer;
134static u_short mouse_and_mask[16] = {
135 0xc000, 0xe000, 0xf000, 0xf800,
136 0xfc00, 0xfe00, 0xff00, 0xff80,
137 0xfe00, 0x1e00, 0x1f00, 0x0f00,
138 0x0f00, 0x0000, 0x0000, 0x0000

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

2696
2697 /* initialize mapscrn arrays to a one to one map */
2698 for (i=0; i<sizeof(scr_map); i++) {
2699 scr_map[i] = scr_rmap[i] = i;
2700 }
2701
2702 /* Save font and palette if VGA */
2703 if (crtc_vga) {
2699 copy_font(SAVE, FONT_16, font_16);
2700 fonts_loaded = FONT_16;
2704 if (fonts_loaded & FONT_16) {
2705 copy_font(LOAD, FONT_16, font_16);
2706 } else {
2707 copy_font(SAVE, FONT_16, font_16);
2708 fonts_loaded = FONT_16;
2709 }
2701 save_palette();
2702 set_destructive_cursor(console[0]);
2703 }
2704
2705#ifdef SC_SPLASH_SCREEN
2706 /*
2707 * Now put up a graphics image, and maybe cycle a
2708 * couble of palette entries for simple animation.

--- 1449 unchanged lines hidden ---
2710 save_palette();
2711 set_destructive_cursor(console[0]);
2712 }
2713
2714#ifdef SC_SPLASH_SCREEN
2715 /*
2716 * Now put up a graphics image, and maybe cycle a
2717 * couble of palette entries for simple animation.

--- 1449 unchanged lines hidden ---