mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
fix multiline erasing
This commit is contained in:
parent
4d29d0d477
commit
754cae1e3d
@ -506,7 +506,7 @@ void HUlib_init_multiline(hu_multiline_t *m,
|
||||
m->cr = cr;
|
||||
m->drawcursor = false;
|
||||
|
||||
m->on = on ? on : &m->built;
|
||||
m->on = on;
|
||||
|
||||
m->builder = builder;
|
||||
m->built = false;
|
||||
|
@ -1432,7 +1432,7 @@ void HU_Drawer(void)
|
||||
|
||||
while (w->multiline)
|
||||
{
|
||||
if (*w->multiline->on)
|
||||
if ((w->multiline->on && *w->multiline->on) || w->multiline->built)
|
||||
{
|
||||
HUlib_draw_widget(w);
|
||||
}
|
||||
@ -1478,7 +1478,7 @@ void HU_Erase(void)
|
||||
|
||||
while (w->multiline)
|
||||
{
|
||||
if (*w->multiline->on)
|
||||
if (w->multiline->on || w->multiline->built)
|
||||
{
|
||||
HUlib_erase_widget(w);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user