Skip to content
Permalink
Browse files

Fix box[]es not being clipped (#10473)

Fixes a regression of #8676.
  • Loading branch information
Desour committed Oct 8, 2020
1 parent f0b6f79 commit b2f3f663858e6d2a2174066e425bb6f2edea910b
Showing with 3 additions and 2 deletions.
  1. +3 −2 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();
}

0 comments on commit b2f3f66

Please sign in to comment.
You can’t perform that action at this time.