From ca5ed4b2cc6e18e73b1ac2e5a7d964531a58e81d Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 23 Nov 2008 12:35:02 +0000 Subject: (svn r14609) -Codechange: Use supplied button colour instead of hardcoded yellow, for 'greyed out' arrow buttons. (Yorick) --- src/settings_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 09c92f9c3..dc197374d 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1015,7 +1015,7 @@ void ShowPatchesSelection() */ void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right) { - int colour = _colour_gradient[COLOUR_YELLOW][2]; + int colour = _colour_gradient[button_colour][2]; DrawFrameRect(x, y + 1, x + 9, y + 9, button_colour, (state == 1) ? FR_LOWERED : FR_NONE); DrawFrameRect(x + 10, y + 1, x + 19, y + 9, button_colour, (state == 2) ? FR_LOWERED : FR_NONE); -- cgit v1.2.3-54-g00ecf