1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Limit text input by TEXT_INPUT_SIZE and not MAX_PATH

This commit is contained in:
ζeh Matt
2023-08-10 14:45:27 +03:00
parent bdb3743897
commit 97c99df341
2 changed files with 2 additions and 2 deletions

View File

@@ -367,7 +367,7 @@ public:
SetPage(_currentTab);
break;
case WIDX_FILTER_TEXT_BOX:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _filter.data(), MAX_PATH);
WindowStartTextbox(*this, widgetIndex, STR_STRING, _filter.data(), TEXT_INPUT_SIZE);
break;
case WIDX_FILTER_CLEAR_BUTTON:
_filter.clear();

View File

@@ -271,7 +271,7 @@ public:
Invalidate();
break;
case WIDX_FILTER_TEXT_BOX:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _filteredSceneryTab.Filter.data(), MAX_PATH);
WindowStartTextbox(*this, widgetIndex, STR_STRING, _filteredSceneryTab.Filter.data(), TEXT_INPUT_SIZE);
break;
case WIDX_FILTER_CLEAR_BUTTON:
_tabEntries[_activeTabIndex].Filter.clear();