summaryrefslogtreecommitdiff
path: root/src/ui/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/text.c')
-rw-r--r--src/ui/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index e762b891..3805c666 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -2114,7 +2114,7 @@ iTextMetrics draw_WrapText(iWrapText *d, int fontId, iInt2 pos, int color) {
2114 const int width = d->mode == word_WrapTextMode 2114 const int width = d->mode == word_WrapTextMode
2115 ? tryAdvance_Text(fontId, text, d->maxWidth, &endPos).x 2115 ? tryAdvance_Text(fontId, text, d->maxWidth, &endPos).x
2116 : tryAdvanceNoWrap_Text(fontId, text, d->maxWidth, &endPos).x; 2116 : tryAdvanceNoWrap_Text(fontId, text, d->maxWidth, &endPos).x;
2117 notify_WrapText_(d, endPos, 0, width, iFalse); 2117 notify_WrapText_(d, endPos, (iTextAttrib){ .colorId = color }, 0, width);
2118 drawRange_Text(fontId, pos, color, (iRangecc){ text.start, endPos }); 2118 drawRange_Text(fontId, pos, color, (iRangecc){ text.start, endPos });
2119 text.start = endPos; 2119 text.start = endPos;
2120 pos.y += lineHeight_Text(fontId); 2120 pos.y += lineHeight_Text(fontId);