diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-15 08:14:22 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-15 08:14:22 +0000 |
commit | 2723128ba9d228f4cfeede31bf57dbefd1b52647 (patch) | |
tree | 73c0cd5427d7463b81ea0acc9051d9cf9ac3271a /src | |
parent | c1108bd2931adf01471b7d1bcc3c214190c1f822 (diff) | |
download | openttd-2723128ba9d228f4cfeede31bf57dbefd1b52647.tar.xz |
(svn r11858) -Fix (r1679): Mask and rule colour in drop down lists using wrong source value. (r1679 partially reverted r1368)
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/dropdown.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp index 81821b9cb..e7f680e6b 100644 --- a/src/widgets/dropdown.cpp +++ b/src/widgets/dropdown.cpp @@ -95,12 +95,12 @@ static void DropDownMenuWndProc(Window *w, WindowEvent *e) 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); |