aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/guiBox.cpp5
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();
}