aboutsummaryrefslogtreecommitdiff
path: root/spectrogram.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-07-15 04:22:33 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-07-15 04:22:33 +0000
commit90b5a6e93d667c3e5bec33cb7ffb6d3e3ac8a5dd (patch)
tree8ca0a18638eec3fcb0cfb356b02635548978826c /spectrogram.c
parent18ee49c530bf5bd1e3f854f41df6ebdd4d8c1c07 (diff)
fix bg
Diffstat (limited to 'spectrogram.c')
-rw-r--r--spectrogram.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/spectrogram.c b/spectrogram.c
index 0fb24ed..3b00946 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -222,6 +222,7 @@ init_panel(Display *d, Window win, int x, int y, int w, int h, int mirror)
int scr = DefaultScreen(d);
int planes = DisplayPlanes(d, scr);
unsigned long white = WhitePixel(d, scr);
+ unsigned long black = BlackPixel(d, scr);
unsigned long gray = hsvcolor(d, 0.0, 0.0, 0.1);
unsigned long *palette;
@@ -243,7 +244,7 @@ init_panel(Display *d, Window win, int x, int y, int w, int h, int mirror)
p->s.height = h * 0.25;
p->sp = XCreateSimpleWindow(d, p->win, p->s.x, p->s.y,
- p->s.width, p->s.height, 0, white, white);
+ p->s.width, p->s.height, 0, white, black);
init_pixmap(&p->spbuf, d, p->sp, p->s, planes);
init_pixmap(&p->spbg, d, p->sp, p->s, planes);
@@ -258,7 +259,7 @@ init_panel(Display *d, Window win, int x, int y, int w, int h, int mirror)
p->w.height = h - p->w.y;
p->wf = XCreateSimpleWindow(d, p->win, p->w.x, p->w.y,
- p->w.width, p->w.height, 0, white, white);
+ p->w.width, p->w.height, 0, white, black);
init_pixmap(&p->wfbuf, d, p->wf, p->w, planes);