aboutsummaryrefslogtreecommitdiff
path: root/drw.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-11-03 21:10:38 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-11-03 21:10:38 +0100
commitf0a5b75d6a0d2a62da45e9f65d92ea4a6a2d5831 (patch)
tree63190fd35f1e0029ed1b03ec73f43bd9fb2e5997 /drw.c
parent1cabeda5505dcc35d4d2ca2a09151a7c449fb401 (diff)
downloaddmenu-f0a5b75d6a0d2a62da45e9f65d92ea4a6a2d5831.tar.gz
dmenu-f0a5b75d6a0d2a62da45e9f65d92ea4a6a2d5831.tar.bz2
dmenu-f0a5b75d6a0d2a62da45e9f65d92ea4a6a2d5831.zip
drw: drw_scm_create: use Clr type
in this context XftColor is a too low-level type.
Diffstat (limited to 'drw.c')
-rw-r--r--drw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drw.c b/drw.c
index c1582e7..c638323 100644
--- 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(XftColor))))
+ if (!drw || !clrnames || clrcount < 2 || !(ret = ecalloc(clrcount, sizeof(Clr))))
return NULL;
for (i = 0; i < clrcount; i++)