1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 08:12:53 +01:00

Rename SPINNER_HEIGHT to kSpinnerHeight

This commit is contained in:
Harry-Hopkinson
2024-04-14 16:56:33 +00:00
parent 14cdfc7262
commit 9fa917ae57
3 changed files with 3 additions and 4 deletions

View File

@@ -554,8 +554,7 @@ static Widget _windowFinancesResearchWidgets[] =
if (i % 2 == 0)
GfxFillRect(
dpi,
{ screenCoords - ScreenCoordsXY{ 0, 1 },
screenCoords + ScreenCoordsXY{ 121, (kTableCellHeight - 2) } },
{ screenCoords - ScreenCoordsXY{ 0, 1 }, screenCoords + ScreenCoordsXY{ 121, (kTableCellHeight - 2) } },
ColourMapA[colours[1]].lighter | 0x1000000);
DrawTextBasic(dpi, screenCoords - ScreenCoordsXY{ 0, 1 }, _windowFinancesSummaryRowLabels[i]);

View File

@@ -1936,7 +1936,7 @@ static Widget _rideConstructionWidgets[] = {
widgets[WIDX_SPEED_SETTING_SPINNER_DOWN].type = WindowWidgetType::Button;
widgets[WIDX_SPEED_SETTING_SPINNER_DOWN].text = STR_NUMERIC_DOWN;
ResizeSpinner(WIDX_SPEED_SETTING_SPINNER, { 12, 138 }, { 85, SPINNER_HEIGHT });
ResizeSpinner(WIDX_SPEED_SETTING_SPINNER, { 12, 138 }, { 85, kSpinnerHeight });
hold_down_widgets |= (1uLL << WIDX_SPEED_SETTING_SPINNER_UP) | (1uLL << WIDX_SPEED_SETTING_SPINNER_DOWN);
}

View File

@@ -46,7 +46,7 @@ constexpr uint8_t kScrollableRowHeight = 12;
constexpr uint8_t kListRowHeight = 12;
constexpr uint8_t kTableCellHeight = 12;
constexpr uint8_t kButtonFaceHeight = 12;
#define SPINNER_HEIGHT 12
constexpr uint8_t kSpinnerHeight = 12;
#define DROPDOWN_HEIGHT 12
#define TEXT_INPUT_SIZE 1024