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

Method surfaceSetToPalette

Source/Surface.cpp:180–184  ·  view source on GitHub ↗

* Immediately apply mPalette to the surface palette */

Source from the content-addressed store, hash-verified

178 * Immediately apply mPalette to the surface palette
179 */
180void cSurface::surfaceSetToPalette() {
181
182 for(size_t cx = 0; cx < g_MaxColors; ++cx )
183 paletteSDLColorSet( cx, &mPalette[cx] );
184}
185
186/**
187 * Immediately apply mPaletteNew to the surface palette

Callers 2

Phase_PausedMethod · 0.80
EngineSetupMethod · 0.80

Calls

no outgoing calls

Tested by 1

EngineSetupMethod · 0.64