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

Method copyFrom

Source/Surface.cpp:245–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void cSurface::copyFrom(const cSurface* pFrom) {
246
247 memcpy(mSurfaceBuffer, pFrom->mSurfaceBuffer, mSurfaceBufferSize);
248
249 for (size_t cx = 0; cx < g_MaxColors; ++cx) {
250 mPalette[cx] = pFrom->mPalette[cx];
251 mPaletteNew[cx] = pFrom->mPaletteNew[cx];
252 mPaletteSDL[cx] = pFrom->mPaletteSDL[cx];
253 }
254}
255
256void cSurface::mergeFrom(const cSurface* pFrom) {
257 auto SourceSurface = pFrom->GetSurfaceBuffer();

Callers 1

Recruit_LoopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected