]> icculus.org git repositories - btb/d2x.git/blob - main/gamepal.h
Added d1x license
[btb/d2x.git] / main / gamepal.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14 #ifndef _GAMEPAL_H
15 #define _GAMEPAL_H
16
17 #include "inferno.h"
18
19 #ifdef __CYGWIN__
20 #undef DEFAULT_PALETTE /* KLUDGE */
21 #endif
22 #define DEFAULT_PALETTE "default.256"
23 #define MENU_PALETTE            "default.256"
24
25 extern char Current_level_palette[FILENAME_LEN];
26
27 //load a palette by name. returns 1 if new palette loaded, else 0
28 //if used_for_level is set, load pig, etc.
29 //if no_change_screen is set, the current screen does not get remapped,
30 //and the hardware palette does not get changed
31 int load_palette(char *name,int used_for_level,int no_change_screen);
32
33 extern ubyte last_palette_for_color_fonts[768];
34
35 //remap color font & menu background into the current palette
36 void remap_fonts_and_menus(int do_fadetable_hack);
37
38 #endif