| 243 | } |
| 244 | |
| 245 | void 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 | |
| 256 | void cSurface::mergeFrom(const cSurface* pFrom) { |
| 257 | auto SourceSurface = pFrom->GetSurfaceBuffer(); |