diff options
author | DS <vorunbekannt75@web.de> | 2020-10-08 19:44:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-08 19:44:47 +0200 |
commit | b2f3f663858e6d2a2174066e425bb6f2edea910b (patch) | |
tree | 914dbc3313e8bb1da02677d88b7564e4a94cd71d /src/gui | |
parent | f0b6f7909a6a760d946209891c3667799874b80a (diff) | |
download | minetest-b2f3f663858e6d2a2174066e425bb6f2edea910b.tar.gz minetest-b2f3f663858e6d2a2174066e425bb6f2edea910b.tar.bz2 minetest-b2f3f663858e6d2a2174066e425bb6f2edea910b.zip |
Fix box[]es not being clipped (#10473)
Fixes a regression of #8676.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/guiBox.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/guiBox.cpp b/src/gui/guiBox.cpp index 99a115daf..443f1064f 100644 --- a/src/gui/guiBox.cpp +++ b/src/gui/guiBox.cpp @@ -107,10 +107,11 @@ void GUIBox::draw() video::IVideoDriver *driver = Environment->getVideoDriver(); driver->draw2DRectangle(main_rect, m_colors[0], m_colors[1], m_colors[3], - m_colors[2], nullptr); + m_colors[2], &AbsoluteClippingRect); for (size_t i = 0; i <= 3; i++) - driver->draw2DRectangle(m_bordercolors[i], border_rects[i], nullptr); + driver->draw2DRectangle(m_bordercolors[i], border_rects[i], + &AbsoluteClippingRect); IGUIElement::draw(); } |