Platform: Fix cursor disappearing on Windows in some cases

This commit is contained in:
Lynix 2019-03-10 15:56:42 +01:00
parent 23b2f0a48d
commit 4bf92457c5
2 changed files with 1 additions and 2 deletions

View File

@ -53,6 +53,7 @@ namespace Nz
m_smoothScrolling(false),
m_scrolling(0)
{
m_cursor = static_cast<HCURSOR>(LoadImage(nullptr, IDC_ARROW, IMAGE_CURSOR, 0, 0, LR_SHARED));
}
bool WindowImpl::Create(const VideoMode& mode, const String& title, WindowStyleFlags style)

View File

@ -122,8 +122,6 @@ namespace Nz
m_impl->SetMinimumSize(-1, -1);
m_impl->SetVisible(true);
SetCursor(Cursor::Get(SystemCursor_Default));
if (opened)
m_impl->SetPosition(position.x, position.y);