about summary refs log tree commit diff
path: root/drw.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-11-03 21:20:48 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-11-03 21:20:48 +0100
commit3756f7f6b8dccf7a31789ffaf073a76fd1a87eb9 (patch)
tree208f1e40bb811f2b4cc4d2479cb356aca886dfba /drw.c
parentgettextprop: check result of XGetTextProperty (undefined behaviour for XFree) (diff)
downloaddwm-3756f7f6b8dccf7a31789ffaf073a76fd1a87eb9.tar.gz
dwm-3756f7f6b8dccf7a31789ffaf073a76fd1a87eb9.tar.bz2
dwm-3756f7f6b8dccf7a31789ffaf073a76fd1a87eb9.zip
sync dmenu drw.{c,h} code: use Clr* (was Scm)
Diffstat (limited to 'drw.c')
-rw-r--r--drw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drw.c b/drw.c
index 319eb6b..c638323 100644
--- a/drw.c
+++ b/drw.c
@@ -180,7 +180,7 @@ drw_fontset_free(Fnt *font)
 }
 
 void
-drw_clr_create(Drw *drw, XftColor *dest, const char *clrname)
+drw_clr_create(Drw *drw, Clr *dest, const char *clrname)
 {
 	if (!drw || !dest || !clrname)
 		return;
@@ -193,14 +193,14 @@ drw_clr_create(Drw *drw, XftColor *dest, const char *clrname)
 
 /* Wrapper to create color schemes. The caller has to call free(3) on the
  * returned color scheme when done using it. */
-Scm
+Clr *
 drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount)
 {
 	size_t i;
-	Scm ret;
+	Clr *ret;
 
 	/* need at least two colors for a scheme */
-	if (!drw || !clrnames || clrcount < 2 || !(ret = ecalloc(clrcount, sizeof(XftColor))))
+	if (!drw || !clrnames || clrcount < 2 || !(ret = ecalloc(clrcount, sizeof(Clr))))
 		return NULL;
 
 	for (i = 0; i < clrcount; i++)
@@ -216,7 +216,7 @@ drw_setfontset(Drw *drw, Fnt *set)
 }
 
 void
-drw_setscheme(Drw *drw, Scm scm)
+drw_setscheme(Drw *drw, Clr *scm)
 {
 	if (drw)
 		drw->scheme = scm;