From 90b5a6e93d667c3e5bec33cb7ffb6d3e3ac8a5dd Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 15 Jul 2013 04:22:33 +0000 Subject: fix bg --- spectrogram.c | 5 +++-- 1 file 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); -- cgit v1.2.3