Devilution
Diablo devolved - magic behind the 1996 computer game
Functions | Variables
palette.h File Reference

Go to the source code of this file.

Functions

void palette_update ()
 
void SaveGamma ()
 
void palette_init ()
 
void LoadPalette (char *pszFileName)
 
void LoadRndLvlPal (int l)
 
void ResetPal ()
 
void IncreaseGamma ()
 
void ApplyGamma (SDL_Color *dst, const SDL_Color *src, int n)
 
void DecreaseGamma ()
 
int UpdateGamma (int gamma)
 
void BlackPalette ()
 
void SetFadeLevel (DWORD fadeval)
 
void PaletteFadeIn (int fr)
 
void PaletteFadeOut (int fr)
 
void palette_update_caves ()
 
void palette_update_quest_palette (int n)
 
BOOL palette_get_color_cycling ()
 
BOOL palette_set_color_cycling (BOOL enabled)
 

Variables

SDL_Color logical_palette [256]
 
SDL_Color system_palette [256]
 
SDL_Color orig_palette [256]
 
int gamma_correction
 
BOOL color_cycling_enabled