1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-21 23:03:04 +01:00

Rename TEXT_INPUT_SIZE to kTextInputSize

This commit is contained in:
Harry-Hopkinson
2024-04-14 17:35:28 +00:00
parent b294d97f03
commit f357dd6cab
4 changed files with 5 additions and 5 deletions

View File

@@ -370,7 +370,7 @@ static Widget window_new_ride_widgets[] = {
SetPage(_currentTab); SetPage(_currentTab);
break; break;
case WIDX_FILTER_TEXT_BOX: case WIDX_FILTER_TEXT_BOX:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _filter.data(), TEXT_INPUT_SIZE); WindowStartTextbox(*this, widgetIndex, STR_STRING, _filter.data(), kTextInputSize);
break; break;
case WIDX_FILTER_CLEAR_BUTTON: case WIDX_FILTER_CLEAR_BUTTON:
_filter.clear(); _filter.clear();

View File

@@ -276,7 +276,7 @@ static Widget WindowSceneryBaseWidgets[] = {
Invalidate(); Invalidate();
break; break;
case WIDX_FILTER_TEXT_BOX: case WIDX_FILTER_TEXT_BOX:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _filteredSceneryTab.Filter.data(), TEXT_INPUT_SIZE); WindowStartTextbox(*this, widgetIndex, STR_STRING, _filteredSceneryTab.Filter.data(), kTextInputSize);
break; break;
case WIDX_FILTER_CLEAR_BUTTON: case WIDX_FILTER_CLEAR_BUTTON:
_tabEntries[_activeTabIndex].Filter.clear(); _tabEntries[_activeTabIndex].Filter.clear();

View File

@@ -1670,8 +1670,8 @@ void WindowStartTextbox(
// text. // text.
if (existing_text != STR_NONE) if (existing_text != STR_NONE)
{ {
char tempBuf[TEXT_INPUT_SIZE]{}; char tempBuf[kTextInputSize]{};
size_t len = FormatStringLegacy(tempBuf, TEXT_INPUT_SIZE, existing_text, &existing_args); size_t len = FormatStringLegacy(tempBuf, kTextInputSize, existing_text, &existing_args);
gTextBoxInput.assign(tempBuf, len); gTextBoxInput.assign(tempBuf, len);
} }

View File

@@ -49,7 +49,7 @@ constexpr uint8_t kButtonFaceHeight = 12;
constexpr uint8_t kSpinnerHeight = 12; constexpr uint8_t kSpinnerHeight = 12;
constexpr uint8_t kDropdownHeight = 12; constexpr uint8_t kDropdownHeight = 12;
#define TEXT_INPUT_SIZE 1024 constexpr int16_t kTextInputSize = 1024;
#define TOP_TOOLBAR_HEIGHT 27 #define TOP_TOOLBAR_HEIGHT 27
extern u8string gTextBoxInput; extern u8string gTextBoxInput;