1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 01:04:50 +01:00

Remove gCommonStringFormatBuffer, CommonTextBufferSize

This commit is contained in:
Aaron van Geffen
2024-07-13 13:25:55 +02:00
parent a97820f297
commit c08541efc7
7 changed files with 14 additions and 17 deletions

View File

@@ -261,7 +261,7 @@ int32_t GfxWrapString(u8string_view text, int32_t width, FontStyle fontStyle, u8
void GfxDrawStringLeftCentred(
DrawPixelInfo& dpi, StringId format, void* args, ColourWithFlags colour, const ScreenCoordsXY& coords)
{
char buffer[CommonTextBufferSize];
char buffer[512];
auto bufferPtr = buffer;
FormatStringLegacy(bufferPtr, sizeof(buffer), format, args);
int32_t height = StringGetHeightRaw(bufferPtr, FontStyle::Medium);