Change: Make all dropdown lists extend width if necessary.

This removes the auto_width parameter from ShowDropDown(At).
This commit is contained in:
Peter Nelson
2023-04-11 20:07:50 +01:00
committed by PeterN
parent 5bc9d00735
commit e5af5907ec
10 changed files with 32 additions and 35 deletions

View File

@@ -382,7 +382,7 @@ struct NewGRFParametersWindow : public Window {
list.emplace_back(new DropDownListCharStringItem(GetGRFStringFromGRFText(par_info->value_names.Find(i)->second), i, false));
}
ShowDropDownListAt(this, std::move(list), old_val, -1, wi_rect, COLOUR_ORANGE, true);
ShowDropDownListAt(this, std::move(list), old_val, -1, wi_rect, COLOUR_ORANGE);
}
}
} else if (IsInsideMM(x, 0, SETTING_BUTTON_WIDTH)) {