From 32e589efbedddaa3ce16597ab2040a1c01e5ee86 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Sat, 21 Mar 2020 15:22:18 +0100 Subject: [PATCH] Make _appropriateImageDropdownItemsPerRow a constexpr (#10990) --- src/openrct2-ui/windows/Dropdown.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/Dropdown.cpp b/src/openrct2-ui/windows/Dropdown.cpp index 01aef379b3..c4544c3720 100644 --- a/src/openrct2-ui/windows/Dropdown.cpp +++ b/src/openrct2-ui/windows/Dropdown.cpp @@ -22,7 +22,7 @@ constexpr int32_t DROPDOWN_TEXT_MAX_ROWS = 32; constexpr int32_t DROPDOWN_ITEM_HEIGHT = 12; -static int32_t _appropriateImageDropdownItemsPerRow[34] = { +static constexpr const uint8_t _appropriateImageDropdownItemsPerRow[34] = { 1, 1, 1, 1, 2, 2, 3, 3, 4, 3, 5, 4, 4, 5, 5, 5, 4, 5, 6, 5, 5, 7, 4, 5, 6, 5, 6, 6, 6, 6, 6, 8, 8, 8, };