mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r11858) -Fix (r1679): Mask and rule colour in drop down lists using wrong source value. (r1679 partially reverted r1368)
This commit is contained in:
parent
c7f9705e4a
commit
327ea90331
@ -95,12 +95,12 @@ static void DropDownMenuWndProc(Window *w, WindowEvent *e)
|
|||||||
|
|
||||||
if (item->masked) {
|
if (item->masked) {
|
||||||
GfxFillRect(x, y, x + width, y + 9,
|
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 {
|
} else {
|
||||||
int c1 = _colour_gradient[_dropdown_menu_widgets[0].color][3];
|
int c1 = _colour_gradient[w->widget[0].color][3];
|
||||||
int c2 = _colour_gradient[_dropdown_menu_widgets[0].color][7];
|
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 + 3, x + w->width - 5, y + 3, c1);
|
||||||
GfxFillRect(x + 1, y + 4, x + w->width - 5, y + 4, c2);
|
GfxFillRect(x + 1, y + 4, x + w->width - 5, y + 4, c2);
|
||||||
|
Loading…
Reference in New Issue
Block a user