(svn r2734) -Feature: The Main Toolbar Dropdown Menu can now display disabled items

This commit is contained in:
celestar
2005-07-28 08:49:29 +00:00
parent 4a4829fa0e
commit 727dea5824
3 changed files with 27 additions and 21 deletions

View File

@@ -1534,7 +1534,7 @@ int GetMenuItemIndex(Window *w, int x, int y)
if ((x -= w->left) >= 0 && x < w->width && (y -= w->top + 1) >= 0) {
y /= 10;
if (y < WP(w,menu_d).item_count)
if (y < WP(w,menu_d).item_count && !HASBIT(WP(w,menu_d).disabled_items, y))
return y;
}
return -1;