parent
56170b3372
commit
e1dc7df3a5
1 changed files with 3 additions and 1 deletions
|
|
@ -315,7 +315,9 @@ std::string WordWrapString(string_view text, size_t width, GameFontTables size,
|
|||
}
|
||||
output.append(processedEnd, end);
|
||||
output += '\n';
|
||||
remaining.remove_prefix(lastBreakablePos + lastBreakableLen - (remaining.data() - begin));
|
||||
|
||||
// Restart from the beginning of the new line.
|
||||
remaining = text.substr(lastBreakablePos + lastBreakableLen);
|
||||
processedEnd = remaining.data();
|
||||
lastBreakablePos = -1;
|
||||
lineWidth = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue