aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-03 19:40:02 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-03 19:40:02 +0000
commitc176a2e8d81a5655dbae5003d8230489cf44b01b (patch)
tree1fb9372cb7c0af96597d89e56f7d377552d15267
parent9467621e730509a2b5d1822857ee2d7474a208aa (diff)
simpilfy
-rw-r--r--spectrogram.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/spectrogram.c b/spectrogram.c
index b903373..25dfd2c 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -255,10 +255,18 @@ init_panel(Display *d, Window win, int x, int y, int w, int h, enum mirror m)
p->win = XCreateSimpleWindow(d, win, x, y, w, h, 0, white, gray);
/* sperctrogram window and its bitmasks */
+#if 0
p->s.x = 0;
p->s.y = 0;
p->s.width = w;
p->s.height = h * 0.25;
+#endif
+ p->s = {
+ .x = 0,
+ .y = 0,
+ .width = w,
+ .height = h * 0.25,
+ };
p->sp = XCreateSimpleWindow(d, p->win, p->s.x, p->s.y,
p->s.width, p->s.height, 0, white, black);