summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-07-28 09:56:15 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-07-28 09:58:06 +0800
commit71aa479d16801035768df3ad10cd8dd3a834fb05 (patch)
tree4178c682e0c9ffc9eb7769a42dd1815008f6889d /gdk
parent998f4f32cccc7ebe3699be74fb066e1d20f472cf (diff)
downloadgtk+-71aa479d16801035768df3ad10cd8dd3a834fb05.tar.gz
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.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkdevicemanager-win32.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gdk/win32/gdkdevicemanager-win32.c b/gdk/win32/gdkdevicemanager-win32.c
index 54018157b6..d8f01764f2 100644
--- a/gdk/win32/gdkdevicemanager-win32.c
+++ b/gdk/win32/gdkdevicemanager-win32.c
@@ -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