mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-23 20:55:43 +02:00
FormspecMenu: make drawing of backgrounds less hacky (#9517)
This commit is contained in:
@@ -44,7 +44,7 @@ void GUIBackgroundImage::draw()
|
||||
|
||||
core::rect<s32> rect = AbsoluteRect;
|
||||
if (m_autoclip)
|
||||
rect.LowerRightCorner += Parent->getAbsolutePosition().getSize();
|
||||
rect.LowerRightCorner += Parent->getAbsoluteClippingRect().getSize();
|
||||
|
||||
video::IVideoDriver *driver = Environment->getVideoDriver();
|
||||
|
||||
|
Reference in New Issue
Block a user