mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Avoid drawing clipped out formspec elements (#10095)
This commit is contained in:
parent
3c2890692b
commit
287f3fb2e3
3 changed files with 21 additions and 3 deletions
|
@ -3483,10 +3483,14 @@ void GUIFormSpecMenu::drawMenu()
|
|||
e->setVisible(true);
|
||||
|
||||
/*
|
||||
Call base class
|
||||
(This is where all the drawing happens.)
|
||||
This is where all the drawing happens.
|
||||
*/
|
||||
gui::IGUIElement::draw();
|
||||
core::list<IGUIElement*>::Iterator it = Children.begin();
|
||||
for (; it != Children.end(); ++it)
|
||||
if ((*it)->isNotClipped() ||
|
||||
AbsoluteClippingRect.isRectCollided(
|
||||
(*it)->getAbsolutePosition()))
|
||||
(*it)->draw();
|
||||
|
||||
for (gui::IGUIElement *e : m_clickthrough_elements)
|
||||
e->setVisible(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue