summaryrefslogtreecommitdiff
path: root/src/ui/labelwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r--src/ui/labelwidget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index ed023961..febaa15b 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -495,6 +495,11 @@ void updateTextCStr_LabelWidget(iLabelWidget *d, const char *text) {
495 refresh_Widget(&d->widget); 495 refresh_Widget(&d->widget);
496} 496}
497 497
498void updateTextAndResizeWidthCStr_LabelWidget(iLabelWidget *d, const char *text) {
499 updateTextCStr_LabelWidget(d, text);
500 d->widget.rect.size.x = defaultSize_LabelWidget(d).x;
501}
502
498void setTextCStr_LabelWidget(iLabelWidget *d, const char *text) { 503void setTextCStr_LabelWidget(iLabelWidget *d, const char *text) {
499 setCStr_String(&d->label, text); 504 setCStr_String(&d->label, text);
500 set_String(&d->srcLabel, &d->label); 505 set_String(&d->srcLabel, &d->label);