[Bf-blender-cvs] [cd7e9a1ad5b] master: Cleanup: use the system-handle arg for GHOST_SetMultitouchGestures

Campbell Barton noreply at git.blender.org
Mon Sep 26 23:05:29 CEST 2022


Commit: cd7e9a1ad5b4f60934c4d95d81968788331db94a
Author: Campbell Barton
Date:   Tue Sep 27 07:03:58 2022 +1000
Branches: master
https://developer.blender.org/rBcd7e9a1ad5b4f60934c4d95d81968788331db94a

Cleanup: use the system-handle arg for GHOST_SetMultitouchGestures

There was an unused argument warning, quiet by using the argument.

===================================================================

M	intern/ghost/intern/GHOST_C-api.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_C-api.cpp b/intern/ghost/intern/GHOST_C-api.cpp
index 1dc23a68cea..0026a33bfc2 100644
--- a/intern/ghost/intern/GHOST_C-api.cpp
+++ b/intern/ghost/intern/GHOST_C-api.cpp
@@ -745,7 +745,7 @@ GHOST_TSuccess GHOST_InvalidateWindow(GHOST_WindowHandle windowhandle)
 
 void GHOST_SetMultitouchGestures(GHOST_SystemHandle systemhandle, const bool use)
 {
-  GHOST_ISystem *system = GHOST_ISystem::getSystem();
+  GHOST_ISystem *system = (GHOST_ISystem *)systemhandle;
   return system->setMultitouchGestures(use);
 }



More information about the Bf-blender-cvs mailing list