Devilution
Diablo devolved - magic behind the 1996 computer game

◆ SetFlaskHeight()

void SetFlaskHeight ( BYTE *  pCelBuff,
int  min,
int  max,
int  sx,
int  sy 
)

Draws a section of the empty flask cel on top of the panel to create the illusion of the flask getting empty.

This function takes a cel and draws a horizontal stripe of height (max-min) onto the back buffer.

Parameters
pCelBuffBuffer of the empty flask cel.
minTop of the flask cel section to draw.
maxBottom of the flask cel section to draw.
sxBack buffer coordinate
syBack buffer coordinate

Definition at line 595 of file control.cpp.