From 685ce70a8a0427a069169ee718a7903c6193c079 Mon Sep 17 00:00:00 2001 From: Bernd Jendrissek Date: Mon, 14 Jan 2013 03:29:41 +0200 Subject: [PATCH] Set fixed-value fields in struct initializer. --- waterfall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waterfall.c b/waterfall.c index d71f15e..ef43b53 100644 --- a/waterfall.c +++ b/waterfall.c @@ -304,6 +304,8 @@ int main(int argc, char *argv[]) struct waterfall_context waterfall = { .buf_index = 0, .integration_samples = INTEGRATION_SAMPLES, + .slice = 0, + .n_slices = 20, }; gtk_init(&argc, &argv); @@ -336,8 +338,6 @@ int main(int argc, char *argv[]) waterfall.buf_size = INTEGRATION_SAMPLES*SAMPLE_SIZE; g_io_add_watch(stdin_channel, G_IO_IN, &waterfall_input, &waterfall); - waterfall.slice = 0; - waterfall.n_slices = 20; waterfall.original = gdk_pixbuf_new(GDK_COLORSPACE_RGB, FALSE, 8, waterfall.n_slices, INTEGRATION_SAMPLES/2 + 1); split_pixbuf(&waterfall); -- 2.11.4.GIT