pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cabeda
)
drw: drw_scm_create: use Clr type
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 3 Nov 2017 20:10:38 +0000
(21:10 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 3 Nov 2017 20:10:38 +0000
(21:10 +0100)
in this context XftColor is a too low-level type.
drw.c
patch
|
blob
|
history
diff --git
a/drw.c
b/drw.c
index
c1582e7
..
c638323
100644
(file)
--- a/
drw.c
+++ b/
drw.c
@@
-200,7
+200,7
@@
drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount)
Clr *ret;
/* need at least two colors for a scheme */
- if (!drw || !clrnames || clrcount < 2 || !(ret = ecalloc(clrcount, sizeof(
XftColo
r))))
+ if (!drw || !clrnames || clrcount < 2 || !(ret = ecalloc(clrcount, sizeof(
Cl
r))))
return NULL;
for (i = 0; i < clrcount; i++)