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);
break;
case WIDX_FILTER_TEXT_BOX:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _filter.data(), TEXT_INPUT_SIZE);
WindowStartTextbox(*this, widgetIndex, STR_STRING, _filter.data(), kTextInputSize);
break;
case WIDX_FILTER_CLEAR_BUTTON:
_filter.clear();

View File

@ -276,7 +276,7 @@ static Widget WindowSceneryBaseWidgets[] = {
Invalidate();
break;
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;
case WIDX_FILTER_CLEAR_BUTTON:
_tabEntries[_activeTabIndex].Filter.clear();

View File

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

View File

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