summaryrefslogtreecommitdiff
path: root/Editor/Utils/HelperFuncs.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-17 16:01:09 +0800
committerchai <chaifix@163.com>2021-10-17 16:01:09 +0800
commite13f699ee5f575198552d94ada1167305c82bb2f (patch)
treed67ff5ec85959f38a62babf856d4fa9f2f0b4147 /Editor/Utils/HelperFuncs.h
parentd35db57d457132dd9d83fa2bd51491b148530655 (diff)
*misc
Diffstat (limited to 'Editor/Utils/HelperFuncs.h')
-rw-r--r--Editor/Utils/HelperFuncs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Editor/Utils/HelperFuncs.h b/Editor/Utils/HelperFuncs.h
index 2ee7932..626e48f 100644
--- a/Editor/Utils/HelperFuncs.h
+++ b/Editor/Utils/HelperFuncs.h
@@ -5,4 +5,7 @@
std::string to_string(const char* cstr);
-extern void PrintCallStack(); \ No newline at end of file
+extern void PrintCallStack();
+
+#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp))
+#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp))