(svn r14609) -Codechange: Use supplied button colour instead of hardcoded yellow, for 'greyed out' arrow buttons. (Yorick)
authorpeter1138
Sun, 23 Nov 2008 12:35:02 +0000
changeset 10358 e18487e907f4
parent 10357 b29c33461124
child 10359 64e5bdedbbfa
(svn r14609) -Codechange: Use supplied button colour instead of hardcoded yellow, for 'greyed out' arrow buttons. (Yorick)
src/settings_gui.cpp
--- a/src/settings_gui.cpp	Sat Nov 22 19:49:17 2008 +0000
+++ b/src/settings_gui.cpp	Sun Nov 23 12:35:02 2008 +0000
@@ -1015,7 +1015,7 @@
  */
 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);