1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Rename snake_case functions in OpenRCT2/util folder

This commit is contained in:
Hielke Morsink
2023-01-18 22:42:16 +01:00
parent f14d1e3b7e
commit 0762fcb601
75 changed files with 323 additions and 323 deletions

View File

@@ -109,7 +109,7 @@ public:
void SetText(std::string_view text, size_t maxLength)
{
_buffer.resize(maxLength);
safe_strcpy(_buffer.data(), std::string(text).c_str(), maxLength);
SafeStrCpy(_buffer.data(), std::string(text).c_str(), maxLength);
_maxInputLength = maxLength;
gTextInput = ContextStartTextInput(_buffer.data(), maxLength);
}
@@ -219,7 +219,7 @@ public:
screenCoords.y += 25;
char wrapped_string[TEXT_INPUT_SIZE];
safe_strcpy(wrapped_string, _buffer.data(), _buffer.size());
SafeStrCpy(wrapped_string, _buffer.data(), _buffer.size());
// String length needs to add 12 either side of box
// +13 for cursor when max length.