let HUlib_init_multiline() clear all lines

This commit is contained in:
Fabian Greffrath 2023-08-22 20:45:14 +02:00
parent 629c1662a4
commit 4be06980d2
2 changed files with 1 additions and 3 deletions

View File

@ -475,8 +475,8 @@ void HUlib_init_multiline(hu_multiline_t *m,
if (m->lines[i] == NULL) if (m->lines[i] == NULL)
{ {
m->lines[i] = malloc(sizeof(hu_line_t)); m->lines[i] = malloc(sizeof(hu_line_t));
HUlib_clear_line(m->lines[i]);
} }
HUlib_clear_line(m->lines[i]);
} }
m->font = f; m->font = f;

View File

@ -580,8 +580,6 @@ void HU_Start(void)
HUlib_init_multiline(&w_message, message_list ? hud_msg_lines : 1, HUlib_init_multiline(&w_message, message_list ? hud_msg_lines : 1,
&doom_font, colrngs[hudcolor_mesg], &doom_font, colrngs[hudcolor_mesg],
&message_on, NULL); &message_on, NULL);
// [FG] clear messages
HUlib_clear_all_lines(&w_message);
// create the secret message widget // create the secret message widget
HUlib_init_multiline(&w_secret, 1, HUlib_init_multiline(&w_secret, 1,