Devilution
Diablo devolved - magic behind the 1996 computer game
Functions | Variables
palette.cpp File Reference
#include "all.h"
#include "../SourceX/display.h"
#include "../3rdParty/Storm/Source/storm.h"

Go to the source code of this file.

Functions

void palette_update ()
 
void ApplyGamma (SDL_Color *dst, const SDL_Color *src, int n)
 
void SaveGamma ()
 
static void LoadGamma ()
 
void palette_init ()
 
void LoadPalette (char *pszFileName)
 
void LoadRndLvlPal (int l)
 
void ResetPal ()
 
void IncreaseGamma ()
 
void DecreaseGamma ()
 
int UpdateGamma (int gamma)
 
void SetFadeLevel (DWORD fadeval)
 
void BlackPalette ()
 
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

DEVILUTION_BEGIN_NAMESPACE SDL_Color logical_palette [256]
 
SDL_Color system_palette [256]
 
SDL_Color orig_palette [256]
 
int gamma_correction = 100
 
BOOL color_cycling_enabled = TRUE
 
BOOLEAN sgbFadedIn = TRUE