System/Libraries/Widget: Eager repaint on widget->SetText() unless otherwise specified

This commit is contained in:
Alec Murphy 2025-04-10 10:58:30 -04:00
parent d3048f31e5
commit 5fb71f80ca

View file

@ -308,6 +308,8 @@ U0 @gui_widget_set_text(Widget* widget, U8* text)
default:
break;
}
if (!widget->parent_win->explicit_repaint)
Gui.Window.Refresh(widget->parent_win);
}
Bool @widget_is_hovered(I64 x, I64 y, Widget* widget)
@ -831,4 +833,4 @@ Gui.Widget.ClearMousePointer = &@gui_widget_clear_mouse_pointer;
Gui.Widget.SetOpacity = &@gui_widget_set_opacity;
Gui.Widget.SetText = &@gui_widget_set_text;
"widget ";
"widget ";