mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-20 14:23:08 +01:00
Rename TEXT_INPUT_SIZE to kTextInputSize
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user