Changeset - r8294:274ad70e7731
[Not reviewed]
master
0 1 0
peter1138 - 17 years ago 2008-01-15 08:14:22
peter1138@openttd.org
(svn r11858) -Fix (r1679): Mask and rule colour in drop down lists using wrong source value. (r1679 partially reverted r1368)
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/widgets/dropdown.cpp
Show inline comments
 
@@ -92,18 +92,18 @@ static void DropDownMenuWndProc(Window *
 
						if (sel == item->result) GfxFillRect(x + 1, y, x + width, y + 9, 0);
 

	
 
						DrawStringTruncated(x + 2, y, item->String(), sel == item->result ? TC_WHITE : TC_BLACK, x + width);
 

	
 
						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);
 
					}
 
				}
 
				y += 10;
0 comments (0 inline, 0 general)