Don't try to set a cursor before one exists

actorid
Alexander "Ace" Olofsson 11 years ago
parent 2f082ef796
commit 8381cad5a4

@ -174,11 +174,11 @@ namespace MWGui
MyGUI::InputManager::getInstance().eventChangeKeyFocus += MyGUI::newDelegate(this, &WindowManager::onKeyFocusChanged);
mCursorManager->setEnabled(true);
onCursorChange(MyGUI::PointerManager::getInstance().getDefaultPointer());
SDL_ShowCursor(false);
mCursorManager->setEnabled(true);
// hide mygui's pointer
MyGUI::PointerManager::getInstance().setVisible(false);
}

Loading…
Cancel
Save