diff options
| -rw-r--r-- | config.def.h | 2 | ||||
| -rw-r--r-- | st.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index 37f9620..35f36cb 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | #define BORDER 2 | 5 | #define BORDER 2 |
| 6 | #define SHELL "/bin/sh" | 6 | #define SHELL "/bin/sh" |
| 7 | 7 | ||
| 8 | /* Terminal colors */ | 8 | /* Terminal colors (16 first used in escape sequence) */ |
| 9 | static const char *colorname[] = { | 9 | static const char *colorname[] = { |
| 10 | "black", | 10 | "black", |
| 11 | "red3", | 11 | "red3", |
| @@ -1541,7 +1541,7 @@ xloadcols(void) { | |||
| 1541 | XColor color; | 1541 | XColor color; |
| 1542 | unsigned long white = WhitePixel(xw.dpy, xw.scr); | 1542 | unsigned long white = WhitePixel(xw.dpy, xw.scr); |
| 1543 | 1543 | ||
| 1544 | for(i = 0; i < 16; i++) { | 1544 | for(i = 0; i < LEN(colorname); i++) { |
| 1545 | if(!XAllocNamedColor(xw.dpy, xw.cmap, colorname[i], &color, &color)) { | 1545 | if(!XAllocNamedColor(xw.dpy, xw.cmap, colorname[i], &color, &color)) { |
| 1546 | dc.col[i] = white; | 1546 | dc.col[i] = white; |
| 1547 | fprintf(stderr, "Could not allocate color '%s'\n", colorname[i]); | 1547 | fprintf(stderr, "Could not allocate color '%s'\n", colorname[i]); |
