diff options
Diffstat (limited to 'src/ui/text.c')
-rw-r--r-- | src/ui/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/text.c b/src/ui/text.c index 3a9b6983..a8be1778 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -919,10 +919,10 @@ iInt2 advanceWrapRange_Text(int fontId, int maxWidth, iRangecc text) { | |||
919 | int drawWrapRange_Text(int fontId, iInt2 pos, int maxWidth, int color, iRangecc text) { | 919 | int drawWrapRange_Text(int fontId, iInt2 pos, int maxWidth, int color, iRangecc text) { |
920 | const char *endp; | 920 | const char *endp; |
921 | while (!isEmpty_Range(&text)) { | 921 | while (!isEmpty_Range(&text)) { |
922 | tryAdvance_Text(fontId, text, maxWidth, &endp); | 922 | const iInt2 adv = tryAdvance_Text(fontId, text, maxWidth, &endp); |
923 | drawRange_Text(fontId, pos, color, (iRangecc){ text.start, endp }); | 923 | drawRange_Text(fontId, pos, color, (iRangecc){ text.start, endp }); |
924 | text.start = endp; | 924 | text.start = endp; |
925 | pos.y += lineHeight_Text(fontId); | 925 | pos.y += adv.y; |
926 | } | 926 | } |
927 | return pos.y; | 927 | return pos.y; |
928 | } | 928 | } |