mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r1357) -Fix: Disabled dropdown menu options are gray again (instead of blue)
This commit is contained in:
parent
f6c4e3eb1c
commit
579d51b1b2
4
widget.c
4
widget.c
@ -443,7 +443,7 @@ static WindowNumber _dropdown_windownum;
|
|||||||
static byte _dropdown_var1;
|
static byte _dropdown_var1;
|
||||||
static byte _dropdown_var2;
|
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},
|
{ WWT_IMGBTN, RESIZE_NONE, 0, 0, 0, 0, 0, 0x0, STR_NULL},
|
||||||
{ WIDGETS_END},
|
{ 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(
|
w2 = AllocateWindow(
|
||||||
w->left + wi[-1].left + 1,
|
w->left + wi[-1].left + 1,
|
||||||
w->top + wi->bottom + 2,
|
w->top + wi->bottom + 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user