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 6c9e23cb..eca0952d 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -1269,7 +1269,7 @@ int drawWrapRange_Text(int fontId, iInt2 pos, int maxWidth, int color, iRangecc | |||
1269 | const iInt2 adv = tryAdvance_Text(fontId, text, maxWidth, &endp); | 1269 | const iInt2 adv = tryAdvance_Text(fontId, text, maxWidth, &endp); |
1270 | drawRange_Text(fontId, pos, color, (iRangecc){ text.start, endp }); | 1270 | drawRange_Text(fontId, pos, color, (iRangecc){ text.start, endp }); |
1271 | text.start = endp; | 1271 | text.start = endp; |
1272 | pos.y += adv.y; | 1272 | pos.y += iMax(adv.y, lineHeight_Text(fontId)); |
1273 | } | 1273 | } |
1274 | return pos.y; | 1274 | return pos.y; |
1275 | } | 1275 | } |
@@ -1416,7 +1416,7 @@ static void initWrap_TextBuf_(iTextBuf *d, int font, int color, int maxWidth, iB | |||
1416 | const iInt2 size = (doWrap ? tryAdvance_Text(font, content, maxWidth, &content.start) | 1416 | const iInt2 size = (doWrap ? tryAdvance_Text(font, content, maxWidth, &content.start) |
1417 | : tryAdvanceNoWrap_Text(font, content, maxWidth, &content.start)); | 1417 | : tryAdvanceNoWrap_Text(font, content, maxWidth, &content.start)); |
1418 | d->size.x = iMax(d->size.x, size.x); | 1418 | d->size.x = iMax(d->size.x, size.x); |
1419 | d->size.y += size.y; | 1419 | d->size.y += iMax(size.y, lineHeight_Text(font)); |
1420 | } | 1420 | } |
1421 | } | 1421 | } |
1422 | SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "0"); | 1422 | SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "0"); |