aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-12-26 03:02:39 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-12-26 03:02:39 +0000
commit6562cfbd42087efb26484565d18933b063782ed9 (patch)
tree3ca3548b963cde75d4d7a394f5d3f47c054cf88c
parent1332a920f5a36dcdff5625bc703b0bba07fb83e7 (diff)
downloadimv-6562cfbd42087efb26484565d18933b063782ed9.tar.gz
Improve readability of g_options
The default options block was getting quite ridiculous to try and read. Let's improve the readability.
-rw-r--r--src/main.c18
1 files changed, 17 insertions, 1 deletions
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)
{