Fixed scoping of menu variables.
[netwalk.git] / colour.h
blob074cf9d4660d726bbacf1b7a6b60b2a26579eeae
1 /* The colour scheme
2 * Ben Lynn
3 */
4 /*
5 Copyright (C) 2004 Benjamin Lynn (blynn@cs.stanford.edu)
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef COLOUR_H
22 #define COLOUR_H
24 #include <SDL.h>
26 enum {
27 c_darkshadow,
28 c_shadow,
29 c_text,
30 c_invtext,
31 c_canvas,
32 c_background,
33 c_menubg,
34 c_buttonborder,
35 c_server,
36 c_serverwon,
37 c_on,
38 c_off,
39 c_up,
40 c_down,
41 c_windowborder,
42 c_border,
43 c_borderwon,
44 c_highlight,
45 c_edgematch,
46 c_pulse,
47 c_unmarkedbg,
48 c_markedbg,
49 c_max
52 extern SDL_Color rgbtable[c_max];
53 extern int ctable[c_max];
54 void init_rgb(int c, int r, int g, int b);
55 void init_rgbtable();
56 void init_ctable();
58 #endif //COLOUR_H