Move global color variable with color names in random.

This commit is contained in:
Renaud 2013-10-01 19:40:26 +08:00
parent b07c1c0acd
commit 1d5cbe67a4
2 changed files with 2 additions and 6 deletions

View File

@ -15,12 +15,6 @@ int revexist = FALSE; /* does reverse video exist? */
int flickcode = FALSE; /* do flicker supression? */
int gmode = 0; /* global editor mode */
int gflags = GFREAD; /* global control flag */
#if PKCODE & IBMPC
int gfcolor = 8; /* global forgrnd color (white) */
#else
int gfcolor = 7; /* global forgrnd color (white) */
#endif
int gbcolor = 0; /* global backgrnd color (black) */
int gasave = 256; /* global ASAVE size */
int gacount = 256; /* count until next ASAVE */
int sgarbf = TRUE; /* TRUE if screen is garbage */

View File

@ -35,6 +35,8 @@ static const char *cname[] = { /* names of colors */
#define NCOLORS (sizeof cname / sizeof( *cname)) /* # of supported colors */
int gfcolor = NCOLORS - 1 ; /* global forgrnd color (white) */
int gbcolor = 0 ; /* global backgrnd color (black) */
int tabsize; /* Tab size (0: use real tabs) */