diff options
| author | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-02-11 12:15:06 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-02-11 12:15:06 +0100 |
| commit | 230d643d908d28a72c30d59c15ab97105b39bf63 (patch) | |
| tree | aa1708a67e933f3328f616e109ea03f7a1500120 /src | |
| parent | 4c4c128faca10d54af6da25891b2fbbb2b8444e6 (diff) | |
automated sync
Diffstat (limited to 'src')
| -rw-r--r-- | src/render.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c index 2694da3..4d5c355 100644 --- a/src/render.c +++ b/src/render.c @@ -251,6 +251,7 @@ s32 render_text(font *font, s32 x, s32 y, char *text, color tint) { ch = 0x3f; } + if (ch == '\n') ch = 0xB6; glyph g = font->glyphs[ch]; @@ -368,7 +369,7 @@ s32 calculate_cursor_position(font *font, char *text, s32 click_x) { ch = 0x3f; } - + if (ch == '\n') ch = 0xB6; glyph g = font->glyphs[ch]; @@ -409,6 +410,7 @@ s32 calculate_text_width_from_upto(font *font, char *text, s32 from, s32 index) { ch = 0x3f; } + if (ch == '\n') ch = 0xB6; glyph g = font->glyphs[ch]; s32 width = g.width; @@ -445,6 +447,7 @@ s32 calculate_text_width_upto(font *font, char *text, s32 index) { ch = 0x3f; } + if (ch == '\n') ch = 0xB6; glyph g = font->glyphs[ch]; s32 width = g.width; @@ -475,6 +478,7 @@ s32 calculate_text_width(font *font, char *text) { ch = 0x3f; } + if (ch == '\n') ch = 0xB6; glyph g = font->glyphs[ch]; s32 width = g.width; |
