mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-12 05:59:53 +02:00
System/Libraries/Widget: Eager repaint on widget->SetText() unless otherwise specified
This commit is contained in:
@@ -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)
|
||||||
@@ -831,4 +833,4 @@ Gui.Widget.ClearMousePointer = &@gui_widget_clear_mouse_pointer;
|
|||||||
Gui.Widget.SetOpacity = &@gui_widget_set_opacity;
|
Gui.Widget.SetOpacity = &@gui_widget_set_opacity;
|
||||||
Gui.Widget.SetText = &@gui_widget_set_text;
|
Gui.Widget.SetText = &@gui_widget_set_text;
|
||||||
|
|
||||||
"widget ";
|
"widget ";
|
||||||
|
|||||||
Reference in New Issue
Block a user