diff options
author | peter1138 <peter1138@openttd.org> | 2008-11-23 12:35:02 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-11-23 12:35:02 +0000 |
commit | 150fd2a49fb9c557b224b639e0c248410f557d07 (patch) | |
tree | 27a63c2079d0938a7c9f018b411861b2d4784e26 /src | |
parent | 2d0ff15267835779c286abe5ef5d2894f3ee0994 (diff) | |
download | openttd-150fd2a49fb9c557b224b639e0c248410f557d07.tar.xz |
(svn r14609) -Codechange: Use supplied button colour instead of hardcoded yellow, for 'greyed out' arrow buttons. (Yorick)
Diffstat (limited to 'src')
-rw-r--r-- | src/settings_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |