aboutsummaryrefslogtreecommitdiff
path: root/spectrogram.c
diff options
context:
space:
mode:
Diffstat (limited to 'spectrogram.c')
-rw-r--r--spectrogram.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/spectrogram.c b/spectrogram.c
index 4c143a2..2ad3587 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -278,7 +278,7 @@ main(int argc, char **argv)
int ch, dflag = 1;
int delta;
- int psize, ssize;
+ int ssize;
while ((ch = getopt(argc, argv, "hd")) != -1)
switch (ch) {
@@ -334,8 +334,7 @@ main(int argc, char **argv)
if (!data.left || !data.right)
errx(1, "malloc failed");
- psize = 2 * height / 3;
- ssize = psize >> 2;
+ ssize = height >> 2;
data.maxval = ssize;
init_rect(width, height, ssize);