From 1b9ac9ea6998ac8a4e51413e06aeed859e784b26 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周一, 11 12月 2023 20:09:19 +0800
Subject: [PATCH] minor tweaks

---
 src/core/qwkglobal_p.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/core/qwkglobal_p.h b/src/core/qwkglobal_p.h
index 1a1f626..5ad8a40 100644
--- a/src/core/qwkglobal_p.h
+++ b/src/core/qwkglobal_p.h
@@ -15,4 +15,9 @@
 #  define QWK_FATAL qCFatal(qWindowKitLog)
 #endif
 
+#define MAKE_RGB_COLOR(r, g, b) ((quint32) | (((r) &0xFF) << 16) | (((g) &0xFF) << 8) | ((b) &0xFF))
+
+#define MAKE_RGBA_COLOR(r, g, b, a)                                                                \
+    ((quint32) (((a) &0xFF) << 24) | (((r) &0xFF) << 16) | (((g) &0xFF) << 8) | ((b) &0xFF))
+
 #endif // QWKGLOBAL_P_H

--
Gitblit v1.9.1