mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Rename format_string(2) and is_user_string_id() (#19178)
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
committed by
GitHub
parent
76b918e7ed
commit
bf5f7e8e71
@@ -180,7 +180,7 @@ int32_t DrawTextWrapped(
|
||||
const void* args = ft.Data();
|
||||
|
||||
// TODO: Refactor StaticLayout to take a std::string_view instead. It shouldn't have to write to the buffer.
|
||||
const std::string buffer = format_string(format, args);
|
||||
const std::string buffer = FormatStringID(format, args);
|
||||
StaticLayout layout(const_cast<char*>(buffer.c_str()), textPaint, width);
|
||||
|
||||
if (textPaint.Alignment == TextAlignment::CENTRE)
|
||||
|
||||
Reference in New Issue
Block a user