mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -04:00
fix line height in HUlib_eraseTextLine()
This commit is contained in:
parent
108467e3c8
commit
d8a068c97b
@ -209,7 +209,7 @@ void HUlib_eraseTextLine(hu_textline_t* l)
|
||||
|
||||
if (!automapactive && viewwindowx && l->needsupdate)
|
||||
{
|
||||
int yoffset, lh = SHORT(l->f[0]->height) + 1;
|
||||
int yoffset, lh = SHORT(l->f['A'-HU_FONTSTART]->height) + 1;
|
||||
for (y=l->y,yoffset=y*SCREENWIDTH ; y<l->y+lh ; y++,yoffset+=SCREENWIDTH)
|
||||
if (y < viewwindowy || y >= viewwindowy + scaledviewheight) // killough 11/98:
|
||||
R_VideoErase(yoffset, SCREENWIDTH); // erase entire line
|
||||
|
Loading…
x
Reference in New Issue
Block a user