1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Replace big window size limits with int16_t max.

This commit is contained in:
Michael Bernardi
2024-12-10 02:09:05 +11:00
parent ab2d2a5180
commit e7ca356633
3 changed files with 6 additions and 4 deletions

View File

@@ -412,8 +412,8 @@ namespace OpenRCT2::Ui::Windows
{
min_width = _info.Desc.MinWidth.value_or(0);
min_height = _info.Desc.MinHeight.value_or(0);
max_width = _info.Desc.MaxWidth.value_or(std::numeric_limits<uint16_t>::max());
max_height = _info.Desc.MaxHeight.value_or(std::numeric_limits<uint16_t>::max());
max_width = _info.Desc.MaxWidth.value_or(std::numeric_limits<int16_t>::max());
max_height = _info.Desc.MaxHeight.value_or(std::numeric_limits<int16_t>::max());
}
RefreshWidgets();
}

View File

@@ -521,7 +521,9 @@ namespace OpenRCT2::Ui::Windows
|| p == WINDOW_FINANCES_PAGE_FINANCIAL_GRAPH)
{
flags |= WF_RESIZABLE;
WindowSetResize(*this, WW_OTHER_TABS, WH_OTHER_TABS, 2000, 2000);
WindowSetResize(
*this, WW_OTHER_TABS, WH_OTHER_TABS, std::numeric_limits<uint16_t>::max(),
std::numeric_limits<int16_t>::max());
}
else
{

View File

@@ -5946,7 +5946,7 @@ namespace OpenRCT2::Ui::Windows
void GraphsResize()
{
WindowSetResize(*this, 316, 182, 5000, 450);
WindowSetResize(*this, 316, 182, std::numeric_limits<int16_t>::max(), 450);
}
void GraphsOnMouseDown(WidgetIndex widgetIndex)