Don't update cursor if no graphics
It hangs when reseting screen in windows with server creation in gui
This commit is contained in:
parent
c959836e34
commit
27f08661b2
@ -731,7 +731,8 @@ void IrrDriver::initDevice()
|
|||||||
#ifndef SERVER_ONLY
|
#ifndef SERVER_ONLY
|
||||||
// set cursor visible by default (what's the default is not too clearly documented,
|
// set cursor visible by default (what's the default is not too clearly documented,
|
||||||
// so let's decide ourselves...)
|
// so let's decide ourselves...)
|
||||||
m_device->getCursorControl()->setVisible(true);
|
if (!ProfileWorld::isNoGraphics())
|
||||||
|
m_device->getCursorControl()->setVisible(true);
|
||||||
#endif
|
#endif
|
||||||
m_pointer_shown = true;
|
m_pointer_shown = true;
|
||||||
} // initDevice
|
} // initDevice
|
||||||
@ -814,6 +815,9 @@ void IrrDriver::getOpenGLData(std::string *vendor, std::string *renderer,
|
|||||||
void IrrDriver::showPointer()
|
void IrrDriver::showPointer()
|
||||||
{
|
{
|
||||||
#ifndef SERVER_ONLY
|
#ifndef SERVER_ONLY
|
||||||
|
if (ProfileWorld::isNoGraphics())
|
||||||
|
return;
|
||||||
|
|
||||||
if (!m_pointer_shown)
|
if (!m_pointer_shown)
|
||||||
{
|
{
|
||||||
m_pointer_shown = true;
|
m_pointer_shown = true;
|
||||||
@ -826,6 +830,9 @@ void IrrDriver::showPointer()
|
|||||||
void IrrDriver::hidePointer()
|
void IrrDriver::hidePointer()
|
||||||
{
|
{
|
||||||
#ifndef SERVER_ONLY
|
#ifndef SERVER_ONLY
|
||||||
|
if (ProfileWorld::isNoGraphics())
|
||||||
|
return;
|
||||||
|
|
||||||
// always visible in artist debug mode, to be able to use the context menu
|
// always visible in artist debug mode, to be able to use the context menu
|
||||||
if (UserConfigParams::m_artist_debug_mode)
|
if (UserConfigParams::m_artist_debug_mode)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user