1
0
Fork 0

(svn r14609) -Codechange: Use supplied button colour instead of hardcoded yellow, for 'greyed out' arrow buttons. (Yorick)

release/0.7
peter1138 2008-11-23 12:35:02 +00:00
parent 5aad874639
commit ca5ed4b2cc
1 changed files with 1 additions and 1 deletions

View File

@ -1015,7 +1015,7 @@ void ShowPatchesSelection()
*/ */
void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right) 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, 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); DrawFrameRect(x + 10, y + 1, x + 19, y + 9, button_colour, (state == 2) ? FR_LOWERED : FR_NONE);