mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Code optimizations / refactor (#12704)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
@@ -86,9 +86,10 @@ void GUIScene::draw()
|
||||
|
||||
core::rect<s32> oldViewPort = m_driver->getViewPort();
|
||||
m_driver->setViewPort(getAbsoluteClippingRect());
|
||||
core::recti borderRect = Environment->getRootGUIElement()->getAbsoluteClippingRect();
|
||||
|
||||
if (m_bgcolor != 0) {
|
||||
core::recti borderRect =
|
||||
Environment->getRootGUIElement()->getAbsoluteClippingRect();
|
||||
Environment->getSkin()->draw3DSunkenPane(
|
||||
this, m_bgcolor, false, true, borderRect, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user