mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
GUI inventory list: Do not render clipped slots (#15764)
This commit is contained in:
@@ -85,6 +85,10 @@ void GUIInventoryList::draw()
|
||||
v2s32 p((i % m_geom.X) * m_slot_spacing.X,
|
||||
(i / m_geom.X) * m_slot_spacing.Y);
|
||||
core::rect<s32> rect = imgrect + base_pos + p;
|
||||
|
||||
if (!getAbsoluteClippingRect().isRectCollided(rect))
|
||||
continue; // out of (parent) clip area
|
||||
|
||||
const ItemStack &orig_item = ilist->getItem(item_i);
|
||||
ItemStack item = orig_item;
|
||||
|
||||
|
Reference in New Issue
Block a user