diff options
author | DS <vorunbekannt75@web.de> | 2022-02-22 19:17:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 19:17:53 +0100 |
commit | 633e23bd6523d4ff14329e8429c2eaf795e6e128 (patch) | |
tree | 5b72fa5e935948792039fe815e70871927408cf9 /src/gui/guiBackgroundImage.cpp | |
parent | 7c227d2a004068267dbe713259d57374a70c29e4 (diff) | |
download | minetest-633e23bd6523d4ff14329e8429c2eaf795e6e128.tar.gz minetest-633e23bd6523d4ff14329e8429c2eaf795e6e128.tar.bz2 minetest-633e23bd6523d4ff14329e8429c2eaf795e6e128.zip |
FormspecMenu: make drawing of backgrounds less hacky (#9517)
Diffstat (limited to 'src/gui/guiBackgroundImage.cpp')
-rw-r--r-- | src/gui/guiBackgroundImage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/guiBackgroundImage.cpp b/src/gui/guiBackgroundImage.cpp index 21c1e88cf..85e870771 100644 --- a/src/gui/guiBackgroundImage.cpp +++ b/src/gui/guiBackgroundImage.cpp @@ -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(); |