MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / palette_SetToBlack

Method palette_SetToBlack

Source/Surface.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void cSurface::palette_SetToBlack() {
77
78 for(size_t ColorID = 0; ColorID < g_MaxColors; ColorID++) {
79
80 // Get the next color values
81 mPalette[ColorID].mRed = 0;
82 mPalette[ColorID].mGreen = 0;
83 mPalette[ColorID].mBlue = 0;
84 }
85
86 surfaceSetToPalette();
87}
88
89void cSurface::palette_SetFromNew() {
90

Callers 2

intro_PlayMethod · 0.80
EngineSetupMethod · 0.80

Calls

no outgoing calls

Tested by 1

EngineSetupMethod · 0.64