MCPcopy Create free account
hub / github.com/NetHack/NetHack / init_colormap

Function init_colormap

win/share/tiletext.c:343–354  ·  view source on GitHub ↗

initialize main colormap from globally accessed ColorMap */

Source from the content-addressed store, hash-verified

341
342/* initialize main colormap from globally accessed ColorMap */
343void
344init_colormap(void)
345{
346 int i;
347
348 colorsinmainmap = colorsinmap;
349 for (i = 0; i < colorsinmap; i++) {
350 MainColorMap[CM_RED][i] = ColorMap[CM_RED][i];
351 MainColorMap[CM_GREEN][i] = ColorMap[CM_GREEN][i];
352 MainColorMap[CM_BLUE][i] = ColorMap[CM_BLUE][i];
353 }
354}
355
356/* merge new colors from ColorMap into MainColorMap */
357void

Callers 3

fopen_text_fileFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected