6 #define VCOLORS 256 /* Number of screen colors */
\r
8 /* GLOBAL VARIABLES */
\r
10 char default_palette[VCOLORS*3]; /* Stores the palette before fades */
\r
11 char empty_palette[VCOLORS*3]; /* Stores an empty palette for quick clearing */
\r
12 char abortfadeonkeyhit=0; /* Quit fading on keyhit? */
\r
13 char animatewhilefading=1; /* Animate screen while performing fade? */
\r
15 extern char default_palette[VCOLORS*3];
\r
16 extern char empty_palette[VCOLORS*3];
\r
17 extern char abortfadeonkeyhit;
\r
18 extern char animatewhilefading;
\r
22 void fade_in (int DACstart, int DACend);
\r
23 void fade_out (int DACstart, int DACend);
\r
26 #define fade_init() fg_getdacs (0, VCOLORS, default_palette); /* COPY PALETTE */
\r
27 #define fade_blackout() memset (empty_palette, 0, VCOLORS*3);\
\r
28 fg_setdacs(0, VCOLORS, empty_palette); /* SET DACS TO ZERO */
\r
30 #define fade_out_all() fade_out(0,255)
\r
31 #define fade_in_all() fade_in(0,255)
\r