diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1414,7 +1414,7 @@ uint BaseSettingEntry::Draw(GameSettings int x = rtl ? right : left; if (cur_row >= first_row) { - int colour = _colour_gradient[COLOUR_ORANGE][4]; + int colour = GetColourGradient(COLOUR_ORANGE, 4); y += (cur_row - first_row) * SETTING_HEIGHT; // Compute correct y start position /* Draw vertical for parent nesting levels */ @@ -2909,7 +2909,7 @@ void ShowGameSettings() */ void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right) { - int colour = _colour_gradient[button_colour][2]; + int colour = GetColourGradient(button_colour, 2); Dimension dim = NWidgetScrollbar::GetHorizontalDimension(); Rect lr = {x, y, x + (int)dim.width - 1, y + (int)dim.height - 1}; @@ -2940,7 +2940,7 @@ void DrawArrowButtons(int x, int y, Colo */ void DrawDropDownButton(int x, int y, Colours button_colour, bool state, bool clickable) { - int colour = _colour_gradient[button_colour][2]; + int colour = GetColourGradient(button_colour, 2); Rect r = {x, y, x + SETTING_BUTTON_WIDTH - 1, y + SETTING_BUTTON_HEIGHT - 1};