[Bf-blender-cvs] [3281507f7b7] master: Document inline that PACKETDATA and PACKETMODE modify external headers to discourage reducing their scope to the only place they're used internally.
Nicholas Rishel
noreply at git.blender.org
Sat Oct 31 00:32:25 CET 2020
Commit: 3281507f7b745052b2b58565e7e95f60b1c9c400
Author: Nicholas Rishel
Date: Fri May 22 16:58:03 2020 -0700
Branches: master
https://developer.blender.org/rB3281507f7b745052b2b58565e7e95f60b1c9c400
Document inline that PACKETDATA and PACKETMODE modify external headers to
discourage reducing their scope to the only place they're used internally.
Signed-off-by: Nicholas Rishel <rishel.nick at gmail.com>
===================================================================
M intern/ghost/intern/GHOST_WindowWin32.h
===================================================================
diff --git a/intern/ghost/intern/GHOST_WindowWin32.h b/intern/ghost/intern/GHOST_WindowWin32.h
index a3aa511bc37..328191d837a 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.h
+++ b/intern/ghost/intern/GHOST_WindowWin32.h
@@ -37,6 +37,7 @@
#include <vector>
#include <wintab.h>
+// PACKETDATA and PACKETMODE modify structs in pktdef.h, so make sure they come first
#define PACKETDATA \
(PK_BUTTONS | PK_NORMAL_PRESSURE | PK_ORIENTATION | PK_CURSOR | PK_X | PK_Y | PK_TIME)
#define PACKETMODE 0
More information about the Bf-blender-cvs
mailing list