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

Function SetFadeLevel

Source/palette.cpp:149–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void SetFadeLevel(DWORD fadeval)
150{
151 int i;
152
153 for (i = 0; i < 255; i++) {
154 system_palette[i].r = (fadeval * logical_palette[i].r) >> 8;
155 system_palette[i].g = (fadeval * logical_palette[i].g) >> 8;
156 system_palette[i].b = (fadeval * logical_palette[i].b) >> 8;
157 }
158 palette_update();
159}
160
161void BlackPalette()
162{

Callers 6

InitFunction · 0.85
UiProgressDialogFunction · 0.85
UiFadeInFunction · 0.85
BlackPaletteFunction · 0.85
PaletteFadeInFunction · 0.85
PaletteFadeOutFunction · 0.85

Calls 1

palette_updateFunction · 0.85

Tested by

no test coverage detected