MCPcopy Create free account
hub / github.com/diasurgical/devilution / UpdateGamma

Function UpdateGamma

Source/palette.cpp:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138int UpdateGamma(int gamma)
139{
140 if (gamma) {
141 gamma_correction = 130 - gamma;
142 ApplyGamma(system_palette, logical_palette, 256);
143 palette_update();
144 }
145 SaveGamma();
146 return 130 - gamma_correction;
147}
148
149void SetFadeLevel(DWORD fadeval)
150{

Callers 2

gamemenu_get_gammaFunction · 0.85
gamemenu_gammaFunction · 0.85

Calls 3

ApplyGammaFunction · 0.85
palette_updateFunction · 0.85
SaveGammaFunction · 0.85

Tested by

no test coverage detected