|
@ -200,7 +200,7 @@ drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount) |
|
|
Clr *ret; |
|
|
Clr *ret; |
|
|
|
|
|
|
|
|
/* need at least two colors for a scheme */ |
|
|
/* 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; |
|
|
return NULL; |
|
|
|
|
|
|
|
|
for (i = 0; i < clrcount; i++) |
|
|
for (i = 0; i < clrcount; i++) |
|
|