Platform: Fix cursor disappearing on Windows in some cases
This commit is contained in:
@@ -53,6 +53,7 @@ namespace Nz
|
|||||||
m_smoothScrolling(false),
|
m_smoothScrolling(false),
|
||||||
m_scrolling(0)
|
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)
|
bool WindowImpl::Create(const VideoMode& mode, const String& title, WindowStyleFlags style)
|
||||||
|
|||||||
@@ -122,8 +122,6 @@ namespace Nz
|
|||||||
m_impl->SetMinimumSize(-1, -1);
|
m_impl->SetMinimumSize(-1, -1);
|
||||||
m_impl->SetVisible(true);
|
m_impl->SetVisible(true);
|
||||||
|
|
||||||
SetCursor(Cursor::Get(SystemCursor_Default));
|
|
||||||
|
|
||||||
if (opened)
|
if (opened)
|
||||||
m_impl->SetPosition(position.x, position.y);
|
m_impl->SetPosition(position.x, position.y);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user