aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-03-26 21:11:05 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-03-26 21:11:05 +0000
commit14e635b943ce3098bc131f2a2e76e1d0c2f92a57 (patch)
tree8bf2c34327b63d4b1f915b234eb7f0f7a1c5f162
parentfbcb563d806bbeef4b7fa39b8b7756b7f93e6216 (diff)
remove constant, make discolight bigger
-rw-r--r--spectrogram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spectrogram.c b/spectrogram.c
index 2db9cd9..6393137 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -302,7 +302,7 @@ main(int argc, char **argv)
psize = 2 * height / 3;
ssize = psize >> 2;
- init_rect(width, height, 1, ssize, !!discolight * 30);
+ init_rect(width, height, 1, ssize, !!discolight * ssize);
sp = init_palette(0.30, 0.00, 0.50, 1.00, 0.75, 1.00, ssize, 0);
wf = init_palette(0.65, 0.30, 1.00, 0.00, 0.00, 1.00, ssize, 1);
@@ -360,7 +360,7 @@ main(int argc, char **argv)
if (!pressed)
discolight ^= 1;
init_rect(width, height, 1, ssize,
- !!discolight * 30);
+ !!discolight * ssize);
break;
default:
break;