aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-05-06 20:07:38 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-05-06 20:07:38 +0000
commite3ff2d32fefa4505badbad8761ffea6122b86986 (patch)
treeb0c05e930518b45e60a6adf12ed6c1235a127f05
parentae26bccb3068857f802cc9995c0b462c6c96110e (diff)
fix gap
-rw-r--r--spectrogram.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/spectrogram.c b/spectrogram.c
index 484bb31..d5917fa 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -35,6 +35,7 @@
#define PSIZE 250
#define SSIZE (PSIZE >> 1)
+#define GAP 2
extern char *__progname;
SDL_Surface *screen;
@@ -94,23 +95,23 @@ init_rect(int w, int h, int ssz, int dlsz)
/* Watterfall */
wf_left.x = 0;
wf_left.y = h - ssz - 1;
- wf_left.w = w / 2 - 5;
+ wf_left.w = w / 2 - GAP;
wf_left.h = 1;
- wf_right.x = w / 2;
+ wf_right.x = w / 2 + GAP;
wf_right.y = h - ssz - 1;
- wf_right.w = w / 2 - 5;
+ wf_right.w = w / 2 - GAP;
wf_right.h = 1;
/* Spectrogram */
sp_left.x = 0;
sp_left.y = h - ssz;
- sp_left.w = w / 2 - 5;
+ sp_left.w = w / 2 - GAP;
sp_left.h = ssz;
- sp_right.x = w / 2;
+ sp_right.x = w / 2 + GAP;
sp_right.y = h - ssz;
- sp_right.w = w / 2 - 5;
+ sp_right.w = w / 2 - GAP;
sp_right.h = ssz;
}
@@ -344,7 +345,7 @@ main(int argc, char **argv)
SDL_initFramerate(&man);
SDL_setFramerate(&man, fps);
- width = delta + 10; /* XXX */
+ width = delta + 2 * GAP;
height = 3 * width / 4;
screen = SDL_SetVideoMode(width, height, 32,