1 /* 2 * XLife Copyright 2011-13 Vladimir Lidovski vol.litwr@gmail.com 3 * $Id: colors.h 255 2013-10-22 09:12:33Z teacher $ 4 * 5 * Permission to use, copy, modify, distribute, and sell this software and its 6 * documentation for any purpose is hereby granted without fee, provided that 7 * the above copyright notice appear in all copies and that both that 8 * copyright notice and this permission notice appear in supporting 9 * documentation, and that the name of the copyright holders not be used in 10 * advertising or publicity pertaining to distribution of the software without 11 * specific, written prior permission. The copyright holders make no 12 * representations about the suitability of this software for any purpose. It 13 * is provided "as is" without express or implied warranty. 14 * 15 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 16 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 17 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 18 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 19 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 20 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 21 * PERFORMANCE OF THIS SOFTWARE. 22 */ 23 24 #define FREE_COLOR MAXSTATES 25 #define GRID_COLOR (MAXSTATES + 1) 26 #define GRID_ECOLOR (MAXSTATES + 2) 27 #define RED_EVER (MAXSTATES + 3) 28 #define ORANGE_EVER (MAXSTATES + 4) 29 #define CYAN_EVER (MAXSTATES + 5) 30 #define LOAD_BOX (MAXSTATES + 5) 31 #define BLACK_EVER (MAXSTATES + 6) 32 #define WHITE_EVER (MAXSTATES + 7) 33 #define GREEN_EVER (MAXSTATES + 8) 34 #define LOADW_BG (MAXSTATES + 9) 35 #define BLUE_EVER (MAXSTATES + 12) 36 37 struct AdjustColorPair { 38 int cn; 39 char *c; 40 }; 41 42 struct NewColorPair { 43 int cn; 44 char c[16]; 45 }; 46 47 extern unsigned long fcolor, bcolor; 48 extern struct AdjustColorPair historycolors[]; 49 extern struct NewColorPair newcolors[]; 50 extern char currentcolors[][16], *fixedcolors[]; 51 52 void DefaultPalette(void); 53 void IniPalette(void); 54 void InitCurrentColors(void); 55 void HistoryPalette(void); 56 void setonecolor(int, char*); 57