about summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
authorokan <okan>2012-12-17 02:28:45 +0000
committerokan <okan>2012-12-17 02:28:45 +0000
commit6900cd36121062f81f29ec3651aa1ee8807edbe1 (patch)
treebbbf15f9401923e29d45105572ce8727e74c3267 /xutil.c
parenta3aaad2c187278b7ac1cf75cb03882dd3d20f29b (diff)
downloadcwm-6900cd36121062f81f29ec3651aa1ee8807edbe1.tar.gz
cwm-6900cd36121062f81f29ec3651aa1ee8807edbe1.tar.xz
cwm-6900cd36121062f81f29ec3651aa1ee8807edbe1.zip
non-trivial menu drawing rewrite, moving to Xft and solving various
font/color drawing issues; from Alexander Polakov
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/xutil.c b/xutil.c
index 9c80dfe..6e80379 100644
--- a/xutil.c
+++ b/xutil.c
@@ -430,3 +430,12 @@ xu_getcolor(struct screen_ctx *sc, char *name)
 
 	return (color.pixel);
 }
+
+void
+xu_xorcolor(XRenderColor a, XRenderColor b, XRenderColor *r)
+{
+	r->red = a.red ^ b.red;
+	r->green = a.green ^ b.green;
+	r->blue = a.blue ^ b.blue;
+	r->alpha = 0xffff;
+}