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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user