mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
fix obituaries erasing (#1478)
* Always erase Doom widgets * Call HU_Erase from D_Display (restore vanilla code)
This commit is contained in:
parent
f76409d68f
commit
721f28cfc4
@ -312,6 +312,9 @@ void D_Display (void)
|
|||||||
borderdrawcount = 3;
|
borderdrawcount = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gamestate == GS_LEVEL && gametic)
|
||||||
|
HU_Erase();
|
||||||
|
|
||||||
switch (gamestate) // do buffered drawing
|
switch (gamestate) // do buffered drawing
|
||||||
{
|
{
|
||||||
case GS_LEVEL:
|
case GS_LEVEL:
|
||||||
|
@ -513,8 +513,16 @@ void HUlib_erase_widget (const hu_widget_t *const w)
|
|||||||
const int height = m->numlines * f->line_height;
|
const int height = m->numlines * f->line_height;
|
||||||
const int y = vert_align_widget(w, m, f, w->h_align, w->v_align);
|
const int y = vert_align_widget(w, m, f, w->h_align, w->v_align);
|
||||||
|
|
||||||
|
if (y > scaledviewy && y < scaledviewy + scaledviewheight - height)
|
||||||
|
{
|
||||||
|
R_VideoErase(0, y, scaledviewx, height);
|
||||||
|
R_VideoErase(scaledviewx + scaledviewwidth, y, scaledviewx, height);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
R_VideoErase(0, y, video.unscaledw, height);
|
R_VideoErase(0, y, video.unscaledw, height);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
|
@ -1527,11 +1527,8 @@ void HU_Erase(void)
|
|||||||
|
|
||||||
w = doom_widget;
|
w = doom_widget;
|
||||||
while (w->multiline)
|
while (w->multiline)
|
||||||
{
|
|
||||||
if (*w->multiline->on)
|
|
||||||
{
|
{
|
||||||
HUlib_erase_widget(w);
|
HUlib_erase_widget(w);
|
||||||
}
|
|
||||||
w++;
|
w++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1565,7 +1562,6 @@ void HU_Ticker(void)
|
|||||||
boom_widget = boom_widgets[hud_active];
|
boom_widget = boom_widgets[hud_active];
|
||||||
plr = &players[displayplayer]; // killough 3/7/98
|
plr = &players[displayplayer]; // killough 3/7/98
|
||||||
|
|
||||||
HU_Erase();
|
|
||||||
HU_disable_all_widgets();
|
HU_disable_all_widgets();
|
||||||
draw_crispy_hud = false;
|
draw_crispy_hud = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user