Browse Source

New BG_COLOR setting in config.h

master
Bert 14 years ago
parent
commit
6e0db8c88d
2 changed files with 5 additions and 4 deletions
  1. +2
    -0
      config.h
  2. +3
    -4
      window.c

+ 2
- 0
config.h View File

@@ -9,3 +9,5 @@
#define ZOOM_MIN 12.5
#define ZOOM_MAX 400

/* */
#define BG_COLOR "#777777"

+ 3
- 4
window.c View File

@@ -43,10 +43,9 @@ void win_open(win_t *win) {
scrw = DisplayWidth(dpy, scr);
scrh = DisplayHeight(dpy, scr);

bgcol.red = 0x7000;
bgcol.green = 0x7000;
bgcol.blue = 0x7000;
XAllocColor(dpy, DefaultColormap(dpy, scr), &bgcol);
if (!XAllocNamedColor(dpy, DefaultColormap(dpy, scr), BG_COLOR,
&bgcol, &bgcol))
FATAL("could not allocate color: %s", BG_COLOR);

if (win->w > scrw)
win->w = scrw;


Loading…
Cancel
Save