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:
parent
7a5b8caa16
commit
cf52d02803
@ -448,10 +448,17 @@ skip_search:
|
|||||||
if (position != 0)
|
if (position != 0)
|
||||||
{
|
{
|
||||||
slots[position].item = drawItems[i].position;
|
slots[position].item = drawItems[i].position;
|
||||||
|
if ((dr.style & ITEMDRAW_DISABLED) == ITEMDRAW_DISABLED)
|
||||||
|
{
|
||||||
|
slots[position].type = ItemSel_None;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
slots[position].type = ItemSel_Item;
|
slots[position].type = ItemSel_Item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (order == ItemOrder_Descending)
|
else if (order == ItemOrder_Descending)
|
||||||
{
|
{
|
||||||
unsigned int i = foundItems;
|
unsigned int i = foundItems;
|
||||||
@ -469,10 +476,17 @@ skip_search:
|
|||||||
if (position != 0)
|
if (position != 0)
|
||||||
{
|
{
|
||||||
slots[position].item = drawItems[i].position;
|
slots[position].item = drawItems[i].position;
|
||||||
|
if ((dr.style & ITEMDRAW_DISABLED) == ITEMDRAW_DISABLED)
|
||||||
|
{
|
||||||
|
slots[position].type = ItemSel_None;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
slots[position].type = ItemSel_Item;
|
slots[position].type = ItemSel_Item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Now, we need to check if we need to add anything extra */
|
/* Now, we need to check if we need to add anything extra */
|
||||||
if (pgn != MENU_NO_PAGINATION || exitButton)
|
if (pgn != MENU_NO_PAGINATION || exitButton)
|
||||||
|
Loading…
Reference in New Issue
Block a user