summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-03 22:04:34 +0000
committerdarkvater <darkvater@openttd.org>2005-01-03 22:04:34 +0000
commit579d51b1b2b0fbaba21f0193576d79498ee0cc70 (patch)
tree2ced19c5c047f7220a562c7a22870fbd9593f4cf
parentf6c4e3eb1cb555fdf80a0bb1f8a76542f00cca3e (diff)
downloadopenttd-579d51b1b2b0fbaba21f0193576d79498ee0cc70.tar.xz
(svn r1357) -Fix: Disabled dropdown menu options are gray again (instead of blue)
-rw-r--r--widget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/widget.c b/widget.c
index cfe53516c..b06aef1eb 100644
--- a/widget.c
+++ b/widget.c
@@ -443,7 +443,7 @@ static WindowNumber _dropdown_windownum;
static byte _dropdown_var1;
static byte _dropdown_var2;
-static const Widget _dropdown_menu_widgets[] = {
+static Widget _dropdown_menu_widgets[] = {
{ WWT_IMGBTN, RESIZE_NONE, 0, 0, 0, 0, 0, 0x0, STR_NULL},
{ WIDGETS_END},
};
@@ -617,6 +617,8 @@ void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int butt
}
}
+ _dropdown_menu_widgets[0].color = wi->color;
+
w2 = AllocateWindow(
w->left + wi[-1].left + 1,
w->top + wi->bottom + 2,