From c176a2e8d81a5655dbae5003d8230489cf44b01b Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 3 Sep 2014 19:40:02 +0000 Subject: simpilfy --- spectrogram.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- cgit v1.2.3