summaryrefslogtreecommitdiff
path: root/src/ui/text.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-12-02 15:07:17 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-12-02 15:07:17 +0200
commit849fd39d08bd4164ed486c2f4addc2cab7a85f9c (patch)
tree2e4c82c362c042abfe610b3d1c2bca1a2e21134e /src/ui/text.c
parent9c384de6e9aa02a628b54b9930c22730f0a22dad (diff)
Show a banner warning about certificate issues
Diffstat (limited to 'src/ui/text.c')
-rw-r--r--src/ui/text.c4
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) {
919int drawWrapRange_Text(int fontId, iInt2 pos, int maxWidth, int color, iRangecc text) { 919int 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}