MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / InitColorPalette

Function InitColorPalette

xscreen.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105// -YXK switch, then leave it alone and don't change it.
106
107void InitColorPalette(int n)
108{
109 CONST KV *rgbbmpNew, *rgbbmpOld;
110 int i;
111
112 rgbbmpNew = (n < 1 || !gs.fAltPalette ? rgbbmpDef : rgbbmpDef2);
113 rgbbmpOld = (n < 1 || !gs.fAltPalette ? rgbbmpDef2 : rgbbmpDef);
114 for (i = 0; i < cColor2; i++)
115 if (n < 0 || rgbbmp[i] == rgbbmpOld[i])
116 rgbbmp[i] = rgbbmpNew[i];
117}
118
119
120// Set up all the colors used by the program, i.e. the foreground and

Callers 6

InitProgramFunction · 0.85
xscreen.cppFile · 0.85
NProcessSwitchesXFunction · 0.85
NProcessSwitchesRareXFunction · 0.85
NWmCommandFunction · 0.85
FRedrawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected