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

Function DecreaseGamma

Source/palette.cpp:127–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void DecreaseGamma()
128{
129 if (gamma_correction > 30) {
130 gamma_correction -= 5;
131 if (gamma_correction < 30)
132 gamma_correction = 30;
133 ApplyGamma(system_palette, logical_palette, 256);
134 palette_update();
135 }
136}
137
138int UpdateGamma(int gamma)
139{

Callers 1

PressCharFunction · 0.85

Calls 2

ApplyGammaFunction · 0.85
palette_updateFunction · 0.85

Tested by

no test coverage detected