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