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.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index fbcd24b9..daca05d1 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -380,8 +380,12 @@ static void draw_LabelWidget_(const iLabelWidget *d) {
380 } 380 }
381 if (d->flags.wrap) { 381 if (d->flags.wrap) {
382 const iRect cont = contentBounds_LabelWidget_(d); 382 const iRect cont = contentBounds_LabelWidget_(d);
383 drawWrapRange_Text( 383 iWrapText wt = {
384 d->font, topLeft_Rect(cont), width_Rect(cont), fg, range_String(&d->label)); 384 .text = range_String(&d->label),
385 .maxWidth = width_Rect(cont),
386 .mode = word_WrapTextMode,
387 };
388 draw_WrapText(&wt, d->font, topLeft_Rect(cont), fg);
385 } 389 }
386 else if (flags & alignLeft_WidgetFlag) { 390 else if (flags & alignLeft_WidgetFlag) {
387 draw_Text(d->font, add_I2(bounds.pos, addX_I2(padding_LabelWidget_(d, 0), iconPad)), 391 draw_Text(d->font, add_I2(bounds.pos, addX_I2(padding_LabelWidget_(d, 0), iconPad)),