[gtk/fix-cxo-system-build] gdkdevicemanager-win32.c: Fix build




commit 71aa479d16801035768df3ad10cd8dd3a834fb05
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jul 28 09:56:15 2021 +0800

    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.

 gdk/win32/gdkdevicemanager-win32.c | 9 ++-------
 1 file 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]