aboutsummaryrefslogtreecommitdiff
path: root/spectrogram.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-06-23 16:52:42 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-06-23 16:52:42 +0000
commiteb7bc09a4f950ffd78ffe46549f14280fdb8448f (patch)
tree09416f460bb45e3bcef86bc759a4121b82abd05b /spectrogram.c
parenta77ed858eeae3d1a40b59ddb9dc7f706424e9f6f (diff)
change proportion
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);