mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
implement utf8, part 16
This commit is contained in:
@@ -200,10 +200,7 @@ int gfx_wrap_string(utf8 *text, int width, int *outNumLines, int *outFontHeight)
|
||||
ch = lastCh;
|
||||
} else if (currentWord == NULL) {
|
||||
// Single word is longer than line, insert null terminator
|
||||
utf8 *end = get_string_end(ch);
|
||||
memmove(ch + 1, ch, end - ch + 1);
|
||||
*ch++ = 0;
|
||||
|
||||
ch += utf8_insert_codepoint(ch, 0);
|
||||
maxWidth = max(maxWidth, lineWidth);
|
||||
(*outNumLines)++;
|
||||
lineWidth = 0;
|
||||
|
||||
Reference in New Issue
Block a user