Devilution
Diablo devolved - magic behind the 1996 computer game

◆ DrawFlask()

void DrawFlask ( BYTE *  pCelBuff,
int  w,
int  nSrcOff,
BYTE *  pBuff,
int  nDstOff,
int  h 
)

Draws the dome of the flask that protrudes above the panel top line.

It draws a rectangle of fixed width 59 and height 'h' from the source buffer into the target buffer.

Parameters
pCelBuffThe flask cel buffer.
wWidth of the cel.
nSrcOffOffset of the source buffer from where the bytes will start to be copied from.
pBuffTarget buffer.
nDstOffOffset of the target buffer where the bytes will start to be copied to.
hHow many lines of the source buffer that will be copied.

Definition at line 625 of file control.cpp.