Mercurial > hg > openttd
changeset 8294:b116014f4010 draft
(svn r11858) -Fix (r1679): Mask and rule colour in drop down lists using wrong source value. (r1679 partially reverted r1368)
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Tue, 15 Jan 2008 08:14:22 +0000 |
parents | d4cd0591d60d |
children | 9b35e1d5ebed |
files | src/widgets/dropdown.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/widgets/dropdown.cpp +++ b/src/widgets/dropdown.cpp @@ -95,12 +95,12 @@ if (item->masked) { GfxFillRect(x, y, x + width, y + 9, - (1 << PALETTE_MODIFIER_GREYOUT) | _colour_gradient[_dropdown_menu_widgets[0].color][5] + (1 << PALETTE_MODIFIER_GREYOUT) | _colour_gradient[w->widget[0].color][5] ); } } else { - int c1 = _colour_gradient[_dropdown_menu_widgets[0].color][3]; - int c2 = _colour_gradient[_dropdown_menu_widgets[0].color][7]; + int c1 = _colour_gradient[w->widget[0].color][3]; + int c2 = _colour_gradient[w->widget[0].color][7]; GfxFillRect(x + 1, y + 3, x + w->width - 5, y + 3, c1); GfxFillRect(x + 1, y + 4, x + w->width - 5, y + 4, c2);