[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs qe.h
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs qe.h |
Date: |
Fri, 5 May 2017 16:08:52 -0400 (EDT) |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 17/05/05 16:08:52
Modified files:
. : qe.h
Log message:
colors: add macros to extract red, green and blue components
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/qe.h?cvsroot=qemacs&r1=1.260&r2=1.261
Patches:
Index: qe.h
===================================================================
RCS file: /sources/qemacs/qemacs/qe.h,v
retrieving revision 1.260
retrieving revision 1.261
diff -u -b -r1.260 -r1.261
--- qe.h 3 May 2017 10:50:49 -0000 1.260
+++ qe.h 5 May 2017 20:08:52 -0000 1.261
@@ -206,6 +206,10 @@
#define QERGB(r,g,b) QEARGB(0xff, r, g, b)
#define QERGB25(r,g,b) QEARGB(1, r, g, b)
#define COLOR_TRANSPARENT 0
+#define QERGB_ALPHA(c) (((c) >> 24) & 255)
+#define QERGB_RED(c) (((c) >> 16) & 255)
+#define QERGB_GREEN(c) (((c) >> 8) & 255)
+#define QERGB_BLUE(c) (((c) >> 0) & 255)
/* A qemacs style is a named set of attributes including:
* - colors for foreground and background
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemacs-commit] qemacs qe.h,
Charlie Gordon <=