Previous check seems to have a race condition, resulting in Wintab not being enabled.

This commit is contained in:
Nicholas Rishel 2020-10-23 21:38:21 -07:00
parent af7b0003cb
commit 316a5914bc
1 changed files with 1 additions and 2 deletions

View File

@ -310,8 +310,7 @@ GHOST_WindowWin32::GHOST_WindowWin32(GHOST_SystemWin32 *system,
(m_wintab.overlap = (GHOST_WIN32_WTOverlap)::GetProcAddress(m_wintab.handle, "WTOverlap"))) {
initializeWintab();
// Determine which tablet API to use and enable it.
bool enableWintab = state != GHOST_kWindowStateMinimized;
updateWintab(enableWintab, enableWintab);
updateWintab(m_system->m_windowFocus, m_system->m_windowFocus);
}
CoCreateInstance(