Platform/Cursor: Fixed SystemCursor_Move on Windows

This commit is contained in:
Lynix 2019-03-10 15:12:20 +01:00
parent 8c91d6a77d
commit ec3cb12451
2 changed files with 2 additions and 1 deletions

View File

@ -163,6 +163,7 @@ Nazara Engine:
- Added possibility to change the RigidBody2D velocity function called by the physics engine
- Fixed MouseButtonEvent and MouseMoveEvent mouse absolute position being unsigned (now signed)
- Fixed Window::SetCursor changing cursor even if window was in foreground on Windows
- Fixed SystemCursor_Move not showing up on Windows
Nazara Development Kit:
- Added ImageWidget (#139)

View File

@ -48,7 +48,7 @@ namespace Nz
bool CursorImpl::Create(SystemCursor cursor)
{
if (cursor != SystemCursor_Move)
if (cursor != SystemCursor_None)
m_cursor = static_cast<HCURSOR>(LoadImage(nullptr, s_systemCursorIds[cursor], IMAGE_CURSOR, 0, 0, LR_SHARED));
else
m_cursor = nullptr;