Commit: e7fd2fbac061f39894cc3b01d15408c1a1aa898d
Author: Nicholas Rishel
Date:   Tue Jun 15 16:26:37 2021 -0700
Branches: wintab-high-frequency
https://developer.blender.org/rBe7fd2fbac061f39894cc3b01d15408c1a1aa898d

Added comment.

===================================================================

M       intern/ghost/intern/GHOST_Wintab.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_Wintab.cpp 
b/intern/ghost/intern/GHOST_Wintab.cpp
index b1e3938af66..14342c33262 100644
--- a/intern/ghost/intern/GHOST_Wintab.cpp
+++ b/intern/ghost/intern/GHOST_Wintab.cpp
@@ -477,6 +477,7 @@ bool GHOST_Wintab::testCoordinates(int sysX, int sysY, int 
wtX, int wtY)
 {
   mapWintabToSysCoordinates(wtX, wtY, wtX, wtY);
 
+  /* Allow off by one pixel tolerance in case of rounding error. */
   if (abs(sysX - wtX) <= 1 && abs(sysY - wtY) <= 1) {
     m_coordTrusted = true;
     return true;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to