From 3801153b81eb9fd6b602610f09d2856baf7ae777 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 2 Jul 2013 00:02:49 +0000 Subject: fix subwindow height, remove __dead attribute --- spectrogram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spectrogram.c b/spectrogram.c index 97f93cc..6717fd2 100644 --- a/spectrogram.c +++ b/spectrogram.c @@ -119,7 +119,7 @@ catch(int notused) die = 1; } -__dead void +void usage(void) { fprintf(stderr, "Usage: %s [-hsd]\n", __progname); @@ -253,7 +253,7 @@ init_panel(Display *d, Window win, int x, int y, int w, int h, int mirror) p->w.x = 0; p->w.y = p->s.height + VGAP; p->w.width = w; - p->w.height = h * 0.75 - VGAP; + 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); -- cgit v1.2.3