Fix glitch where the irrlicht dialog close button would be slightly visible in the corner of a STK dialog, and a crash would ensue if you clicked it
This commit is contained in:
parent
939e5d9fff
commit
b2fab2ae6d
@ -26,6 +26,7 @@
|
||||
#include "utils/log.hpp"
|
||||
|
||||
#include <IGUIEnvironment.h>
|
||||
#include <IGUIButton.h>
|
||||
|
||||
using namespace irr;
|
||||
using namespace core;
|
||||
@ -134,6 +135,8 @@ void ModalDialog::doInit()
|
||||
|
||||
m_irrlicht_window = GUIEngine::getGUIEnv()->addWindow(m_area,
|
||||
true /* modal */);
|
||||
m_irrlicht_window->setDrawTitlebar(false);
|
||||
m_irrlicht_window->getCloseButton()->setVisible(false);
|
||||
|
||||
GUIEngine::getSkin()->m_dialog = true;
|
||||
GUIEngine::getSkin()->m_dialog_size = 0.0f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user