fixed amb1468 - renderer marked disabled items as valid selections

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401879
This commit is contained in:
David Anderson 2008-02-22 01:56:22 +00:00
parent 7a5b8caa16
commit cf52d02803

View File

@ -448,7 +448,14 @@ skip_search:
if (position != 0)
{
slots[position].item = drawItems[i].position;
slots[position].type = ItemSel_Item;
if ((dr.style & ITEMDRAW_DISABLED) == ITEMDRAW_DISABLED)
{
slots[position].type = ItemSel_None;
}
else
{
slots[position].type = ItemSel_Item;
}
}
}
}
@ -469,7 +476,14 @@ skip_search:
if (position != 0)
{
slots[position].item = drawItems[i].position;
slots[position].type = ItemSel_Item;
if ((dr.style & ITEMDRAW_DISABLED) == ITEMDRAW_DISABLED)
{
slots[position].type = ItemSel_None;
}
else
{
slots[position].type = ItemSel_Item;
}
}
}
}