From 6562cfbd42087efb26484565d18933b063782ed9 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sat, 26 Dec 2015 03:02:39 +0000 Subject: Improve readability of g_options The default options block was getting quite ridiculous to try and read. Let's improve the readability. --- src/main.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 5c8c041..5bdde7e 100644 --- a/src/main.c +++ b/src/main.c @@ -46,7 +46,23 @@ struct { char *overlay_str; const char *start_at; const char *font; -} g_options = {0,0,0,0,0,1,0,0,0,0,0,0,NULL,NULL,"Monospace:24"}; +} g_options = { + .fullscreen = 0, + .sin = 0, + .recursive = 0, + .actual = 0, + .nearest_neighbour = 0, + .solid_bg = 1, + .list = 0, + .delay = 0, + .bg_r = 0, + .bg_g = 0, + .bg_b = 0, + .overlay = 0, + .overlay_str = NULL, + .start_at = NULL, + .font = "Monospace:24", +}; void print_usage(const char* name) { -- cgit v1.2.3