aboutsummaryrefslogtreecommitdiff
path: root/spectrogram.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-06-26 22:19:13 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-06-26 22:19:13 +0000
commit3c3e3edc4a12b0239ded23bbf422553e4688c894 (patch)
tree38fd296061dca6dd374eec0bbe4688b31fe98a24 /spectrogram.c
parent02646ed9486b3c1725723c21ffcffb060aab4fa5 (diff)
minor cleanup
Diffstat (limited to 'spectrogram.c')
-rw-r--r--spectrogram.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/spectrogram.c b/spectrogram.c
index 280f0a3..e404db9 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -154,8 +154,7 @@ draw_panel(Display *d, struct panel *p)
/* blit shadow mask */
XCopyArea(d, p->smask, p->smask, p->sgc,
- 0, 0, p->s.width, p->s.height - 1,
- 0, 1);
+ 0, 0, p->s.width, p->s.height - 1, 0, 1);
for (i = 0; i < p->p.width; i++) {
/* limit maxval */
@@ -185,13 +184,13 @@ draw_panel(Display *d, struct panel *p)
/* shadow */
XSetClipMask(d, p->pgc, p->smask);
- XCopyArea(d, p->sbg, p->pix, p->pgc, 0, 0, p->s.width, p->s.height,
- p->s.x, p->s.y);
+ XCopyArea(d, p->sbg, p->pix, p->pgc,
+ 0, 0, p->s.width, p->s.height, p->s.x, p->s.y);
/* spectrogram */
XSetClipMask(d, p->pgc, p->mask);
- XCopyArea(d, p->bg, p->pix, p->pgc, 0, 0, p->s.width, p->s.height,
- p->s.x, p->s.y);
+ XCopyArea(d, p->bg, p->pix, p->pgc,
+ 0, 0, p->s.width, p->s.height, p->s.x, p->s.y);
/* reset mask */
XSetClipMask(d, p->pgc, None);
@@ -337,8 +336,8 @@ main(int argc, char **argv)
white = WhitePixel(dsp, scr);
black = BlackPixel(dsp, scr);
- win = XCreateSimpleWindow(dsp, RootWindow(dsp, scr), 0, 0,
- width, height, 2, white, black);
+ win = XCreateSimpleWindow(dsp, RootWindow(dsp, scr),
+ 0, 0, width, height, 1, white, black);
XClearWindow(dsp, win);
XStoreName(dsp, win, __progname);