diff options
author | Nicholas Rishel <rishel.nick@gmail.com> | 2020-10-23 03:50:51 +0300 |
---|---|---|
committer | Nicholas Rishel <rishel.nick@gmail.com> | 2020-10-31 02:29:04 +0300 |
commit | 50558416b93b5bb83a62f2f9b25a5bc6bf328d98 (patch) | |
tree | d0c6aaa8649fc31383b04246426932d204fbdc8b /intern | |
parent | 792e145c2281c1a1230712206da219fd92d8d6cb (diff) |
Commented assumption was incorrect, using tickCountToMillis causes underflow when compared to current time.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWin32.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp index d9b5a9f8b65..381b1198f7e 100644 --- a/intern/ghost/intern/GHOST_WindowWin32.cpp +++ b/intern/ghost/intern/GHOST_WindowWin32.cpp @@ -1382,8 +1382,7 @@ GHOST_TSuccess GHOST_WindowWin32::getWintabInfo(std::vector<GHOST_WintabInfoWin3 m_wintab.sysButtonsPressed = pkt.pkButtons; - /* Wintab does not support performance counters, so use low frequency counter instead. */ - outWintabInfo[i].time = system->tickCountToMillis(pkt.pkTime); + outWintabInfo[i].time = system->millisSinceStart(pkt.pkTime); outWintabInfo[i].tabletData = tabletData; } |