Devilution
Diablo devolved - magic behind the 1996 computer game

◆ CelBlitLightSafe()

void CelBlitLightSafe ( BYTE *  pDecodeTo,
BYTE *  pRLEBytes,
int  nDataSize,
int  nWidth,
BYTE *  tbl 
)

Blit CEL sprite, and apply lighting, 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
tblPalette translation table

Definition at line 271 of file engine.cpp.