gdkdevicemanager-win32.c: Fix build

Fix the call to p_WTSetA, as we should be passing in a HCTX, not a
HCTX*.  Also clean up things a bit.
This commit is contained in:
Chun-wei Fan
2021-07-28 09:56:15 +08:00
parent 998f4f32cc
commit 71aa479d16

View File

@ -1148,15 +1148,10 @@ wintab_init_check (GdkDeviceManagerWin32 *device_manager)
if (!(lc.lcOptions & CXO_SYSTEM))
{
lc.lcOptions |= CXO_SYSTEM;
if (!p_WTSetA (hctx, &lc))
{
g_warning ("Could not set the CXO_SYSTEM option in the WINTAB context");
}
if (!p_WTSetA (*hctx, &lc))
g_warning ("Could not set the CXO_SYSTEM option in the WINTAB context");
}
#if 0
(*p_WTEnable) (*hctx, TRUE);
#endif
(*p_WTOverlap) (*hctx, TRUE);
#if DEBUG_WINTAB