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: default:
break; break;
} }
if (!widget->parent_win->explicit_repaint)
Gui.Window.Refresh(widget->parent_win);
} }
Bool @widget_is_hovered(I64 x, I64 y, Widget* widget) Bool @widget_is_hovered(I64 x, I64 y, Widget* widget)