[Bf-blender-cvs] [e9acbc202f5] grab_walk_fix: Improve cursor wrap reliability.
Nicholas Rishel
noreply at git.blender.org
Sat Jul 24 00:27:51 CEST 2021
Commit: e9acbc202f588e1baf397b75b89636aa011c68db
Author: Nicholas Rishel
Date: Fri Jul 23 14:10:50 2021 -0700
Branches: grab_walk_fix
https://developer.blender.org/rBe9acbc202f588e1baf397b75b89636aa011c68db
Improve cursor wrap reliability.
===================================================================
M intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index 65b7380c959..b1dcd1bb47f 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1092,7 +1092,9 @@ GHOST_EventCursor *GHOST_SystemWin32::processCursorEvent(GHOST_WindowWin32 *wind
return NULL;
}
- system->getCursorPosition(x_screen, y_screen);
+ DWORD pos = ::GetMessagePos();
+ x_screen = GET_X_LPARAM(pos);
+ y_screen = GET_Y_LPARAM(pos);
int32_t x_accum = 0;
int32_t y_accum = 0;
More information about the Bf-blender-cvs
mailing list