]> 4ch.mooo.com Git - 16.git/blob - 16/roads/FX.H
fixed the issue with compiling in dos in 1.9 and 2.0. only 1.9 linux fails for some...
[16.git] / 16 / roads / FX.H
1 #ifndef __MEM_H\r
2 #include <mem.h>\r
3 #endif\r
4 \r
5 /* DEFINITIONS */\r
6 #define VCOLORS     256         /* Number of screen colors */\r
7 \r
8 /* GLOBAL VARIABLES */\r
9 #ifdef FX_C\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
14 #else\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
19 #endif\r
20 \r
21 /* PROTOTYPES */\r
22 void fade_in (int DACstart, int DACend);\r
23 void fade_out (int DACstart, int DACend);\r
24 \r
25 /* MACROS */\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
29 \r
30 #define fade_out_all() fade_out(0,255)\r
31 #define fade_in_all()  fade_in(0,255)\r
32 \r