forked from Mirrorlandia_minetest/minetest
parent
f0b6f7909a
commit
b2f3f66385
@ -107,10 +107,11 @@ void GUIBox::draw()
|
|||||||
video::IVideoDriver *driver = Environment->getVideoDriver();
|
video::IVideoDriver *driver = Environment->getVideoDriver();
|
||||||
|
|
||||||
driver->draw2DRectangle(main_rect, m_colors[0], m_colors[1], m_colors[3],
|
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++)
|
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();
|
IGUIElement::draw();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user