Devilution
Diablo devolved - magic behind the 1996 computer game

◆ CelBlitSafe()

void CelBlitSafe ( BYTE *  pDecodeTo,
BYTE *  pRLEBytes,
int  nDataSize,
int  nWidth 
)

Blit CEL sprite to the given buffer, checks for drawing outside the buffer.

Parameters
pDecodeToThe output buffer
pRLEBytesCEL pixel stream (run-length encoded)
nDataSizeSize of CEL in bytes
nWidthWidth of sprite

Definition at line 205 of file engine.cpp.