[Bf-blender-cvs] [e7fd2fbac06] wintab-high-frequency: Added comment.

Nicholas Rishel noreply at git.blender.org
Wed Jun 16 01:30:51 CEST 2021


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;



More information about the Bf-blender-cvs mailing list