File diff r28250:0a9b32749383 → r28251:f0fa727dcf7c
src/widgets/dropdown.cpp
Show inline comments
 
@@ -179,13 +179,13 @@ struct DropdownWindow : Window {
 
			/* Skip items that are scrolled up */
 
			if (--pos >= 0) continue;
 

	
 
			if (y + item_height - 1 <= ir.bottom) {
 
				Rect full{ir.left, y, ir.right, y + item_height - 1};
 

	
 
				bool selected = (this->selected_index == item->result);
 
				bool selected = (this->selected_index == item->result) && item->Selectable();
 
				if (selected) GfxFillRect(full, PC_BLACK);
 

	
 
				item->Draw(full, full.Shrink(WidgetDimensions::scaled.dropdowntext, RectPadding::zero), selected, colour);
 
			}
 
			y += item_height;
 
		}