aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiBackgroundImage.cpp
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2022-02-22 19:17:53 +0100
committerGitHub <noreply@github.com>2022-02-22 19:17:53 +0100
commit633e23bd6523d4ff14329e8429c2eaf795e6e128 (patch)
tree5b72fa5e935948792039fe815e70871927408cf9 /src/gui/guiBackgroundImage.cpp
parent7c227d2a004068267dbe713259d57374a70c29e4 (diff)
downloadminetest-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.cpp2
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();