mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
Replace format_string(4) with OpenRCT2::FormatStringLegacy() (#19190)
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
committed by
GitHub
parent
d6f58c2f1f
commit
12874f2af7
@@ -304,7 +304,7 @@ int32_t ChatStringWrappedGetHeight(void* args, int32_t width)
|
||||
{
|
||||
char buffer[CommonTextBufferSize];
|
||||
auto bufferPtr = buffer;
|
||||
format_string(bufferPtr, 256, STR_STRING, args);
|
||||
FormatStringLegacy(bufferPtr, 256, STR_STRING, args);
|
||||
|
||||
int32_t numLines;
|
||||
GfxWrapString(bufferPtr, width, FontStyle::Medium, &numLines);
|
||||
|
||||
Reference in New Issue
Block a user