Devilution
Diablo devolved - magic behind the 1996 computer game

◆ trans_rect()

void trans_rect ( int  sx,
int  sy,
int  width,
int  height 
)

Draws a half-transparent rectangle by blacking out odd pixels on odd lines, even pixels on even lines.

Render a transparent black rectangle

Parameters
sxScreen coordinate
syScreen coordinate
widthRectangle width
heightRectangle height

Definition at line 342 of file render.cpp.