aboutsummaryrefslogtreecommitdiff
path: root/spectrogram.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-06-24 13:17:54 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-06-24 13:17:54 +0000
commit609c053794311df27987721c05c6639a9b7d16d6 (patch)
treececbbf793feb8b27acd52277e10859d516114aac /spectrogram.c
parent11edbf0e8d6832973e7c33642ee7e1f3d6ba030d (diff)
minor cleanup
Diffstat (limited to 'spectrogram.c')
-rw-r--r--spectrogram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spectrogram.c b/spectrogram.c
index 2c378da..865789a 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -309,7 +309,8 @@ main(int argc, char **argv)
delta = get_round(sio);
width = delta + 2 * GAP;
- height = 3 * width / 4;
+ height = 0.75 * width;
+ data.maxval = 0.25 * height;
win = XCreateSimpleWindow(dsp, RootWindow(dsp, scr), 0, 0,
width, height, 2, white, black);
@@ -333,7 +334,6 @@ main(int argc, char **argv)
if (!data.left || !data.right)
errx(1, "malloc failed");
- data.maxval = height >> 2;
init_rect(width, height, data.maxval);
data.sp = init_palette(0.3, 0.0, 0.5, 1.0, 0.75, 1.0, data.maxval, 0);
data.wf = init_palette(0.65, 0.35, 1.0, 0.0, 0.0, 1.0, data.maxval, 1);