From 4bf92457c537dc6b1a834a13f1ae4ace7812bde5 Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 10 Mar 2019 15:56:42 +0100 Subject: [PATCH] Platform: Fix cursor disappearing on Windows in some cases --- src/Nazara/Platform/Win32/WindowImpl.cpp | 1 + src/Nazara/Platform/Window.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Nazara/Platform/Win32/WindowImpl.cpp b/src/Nazara/Platform/Win32/WindowImpl.cpp index 9d7c6e9a6..1e5135168 100644 --- a/src/Nazara/Platform/Win32/WindowImpl.cpp +++ b/src/Nazara/Platform/Win32/WindowImpl.cpp @@ -53,6 +53,7 @@ namespace Nz m_smoothScrolling(false), m_scrolling(0) { + m_cursor = static_cast(LoadImage(nullptr, IDC_ARROW, IMAGE_CURSOR, 0, 0, LR_SHARED)); } bool WindowImpl::Create(const VideoMode& mode, const String& title, WindowStyleFlags style) diff --git a/src/Nazara/Platform/Window.cpp b/src/Nazara/Platform/Window.cpp index e3b9c913c..9ce743ad4 100644 --- a/src/Nazara/Platform/Window.cpp +++ b/src/Nazara/Platform/Window.cpp @@ -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);