Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rishel <rishel.nick@gmail.com>2021-02-23 21:04:19 +0300
committerNicholas Rishel <rishel.nick@gmail.com>2021-02-23 22:27:40 +0300
commit6844b768f3693332bea1bef0fcb76f4168ce08fe (patch)
treed4cd929adc682781dee5646fc5dd366e0ab6fb8e
parent37afeb7eaa8c2965fa4348b66b6ef600b7a3769a (diff)
Revert Automatic Tablet API dynamic fallback.
Removes fallback to Windows Ink when Wintab reports no devices present. Returns to old behavior of using only Wintab if Wintab.dll exists.
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.cpp4
-rw-r--r--intern/ghost/intern/GHOST_WindowWin32.cpp12
-rw-r--r--intern/ghost/intern/GHOST_WindowWin32.h7
3 files changed, 1 insertions, 22 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index c12fec4fe3c..85eeec8aa0d 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1459,10 +1459,6 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
////////////////////////////////////////////////////////////////////////
// Wintab events, processed
////////////////////////////////////////////////////////////////////////
- case WT_INFOCHANGE:
- window->processWintabInfoChangeEvent(lParam);
- eventHandled = true;
- break;
case WT_PACKET:
window->processWin32TabletEvent(wParam, lParam);
break;
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp
index f443fc3153f..8696a146c98 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.cpp
+++ b/intern/ghost/intern/GHOST_WindowWin32.cpp
@@ -355,8 +355,6 @@ GHOST_WindowWin32::GHOST_WindowWin32(GHOST_SystemWin32 *system,
if (m_wintab.enable && m_wintab.tablet) {
m_wintab.enable(m_wintab.tablet, TRUE);
}
-
- m_wintab.info(WTI_INTERFACE, IFC_NDEVICES, &m_wintab.numDevices);
}
}
CoCreateInstance(
@@ -1122,7 +1120,7 @@ bool GHOST_WindowWin32::useTabletAPI(GHOST_TTabletAPI api) const
return true;
}
else if (m_system->getTabletAPI() == GHOST_kTabletAutomatic) {
- if (m_wintab.numDevices)
+ if (m_wintab.tablet)
return api == GHOST_kTabletWintab;
else
return api == GHOST_kTabletNative;
@@ -1164,14 +1162,6 @@ void GHOST_WindowWin32::processWin32TabletInitEvent()
m_tabletData.Active = GHOST_kTabletModeNone;
}
-void GHOST_WindowWin32::processWintabInfoChangeEvent(LPARAM lParam)
-{
- /* Update number of connected Wintab digitizers */
- if (LOWORD(lParam) == WTI_INTERFACE && HIWORD(lParam) == IFC_NDEVICES) {
- m_wintab.info(WTI_INTERFACE, IFC_NDEVICES, &m_wintab.numDevices);
- }
-}
-
void GHOST_WindowWin32::processWin32TabletEvent(WPARAM wParam, LPARAM lParam)
{
if (!useTabletAPI(GHOST_kTabletWintab)) {
diff --git a/intern/ghost/intern/GHOST_WindowWin32.h b/intern/ghost/intern/GHOST_WindowWin32.h
index c65f6a3319f..18897a246b2 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.h
+++ b/intern/ghost/intern/GHOST_WindowWin32.h
@@ -446,12 +446,6 @@ class GHOST_WindowWin32 : public GHOST_Window {
WPARAM wParam,
LPARAM lParam);
- /**
- * Handle Wintab info changes such as change in number of connected tablets.
- * \param lParam: LPARAM of the event.
- */
- void processWintabInfoChangeEvent(LPARAM lParam);
-
void processWin32TabletActivateEvent(WORD state);
void processWin32TabletInitEvent();
void processWin32TabletEvent(WPARAM wParam, LPARAM lParam);
@@ -572,7 +566,6 @@ class GHOST_WindowWin32 : public GHOST_Window {
HCTX tablet;
LONG maxPressure;
LONG maxAzimuth, maxAltitude;
- UINT numDevices;
} m_wintab;
GHOST_TWindowState m_normal_state;