no palette limit (thx Nick)
This commit is contained in:
parent
9d613092d6
commit
907cb8bfa6
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
#define BORDER 2
|
#define BORDER 2
|
||||||
#define SHELL "/bin/sh"
|
#define SHELL "/bin/sh"
|
||||||
|
|
||||||
/* Terminal colors */
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
"black",
|
"black",
|
||||||
"red3",
|
"red3",
|
||||||
|
|
2
st.c
2
st.c
|
@ -1541,7 +1541,7 @@ xloadcols(void) {
|
||||||
XColor color;
|
XColor color;
|
||||||
unsigned long white = WhitePixel(xw.dpy, xw.scr);
|
unsigned long white = WhitePixel(xw.dpy, xw.scr);
|
||||||
|
|
||||||
for(i = 0; i < 16; i++) {
|
for(i = 0; i < LEN(colorname); i++) {
|
||||||
if(!XAllocNamedColor(xw.dpy, xw.cmap, colorname[i], &color, &color)) {
|
if(!XAllocNamedColor(xw.dpy, xw.cmap, colorname[i], &color, &color)) {
|
||||||
dc.col[i] = white;
|
dc.col[i] = white;
|
||||||
fprintf(stderr, "Could not allocate color '%s'\n", colorname[i]);
|
fprintf(stderr, "Could not allocate color '%s'\n", colorname[i]);
|
||||||
|
|
Loading…
Reference in a new issue