aboutsummaryrefslogtreecommitdiffstats
path: root/subsurfacestartup.c
diff options
context:
space:
mode:
Diffstat (limited to 'subsurfacestartup.c')
-rw-r--r--subsurfacestartup.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/subsurfacestartup.c b/subsurfacestartup.c
index 3f410aff4..06a76d04f 100644
--- a/subsurfacestartup.c
+++ b/subsurfacestartup.c
@@ -30,6 +30,7 @@ struct preferences default_prefs = {
.display_invalid_dives = false,
.show_sac = false,
.display_unused_tanks = false,
+ .show_average_depth = true,
.text_label_with_units = false
};
@@ -94,7 +95,8 @@ static void print_help()
printf("\n --help|-h This help text");
printf("\n --import logfile ... Logs before this option is treated as base, everything after is imported");
printf("\n --verbose|-v Verbose debug (repeat to increase verbosity)");
- printf("\n --version Prints current version\n\n");
+ printf("\n --version Prints current version");
+ printf("\n --win32console Create a dedicated console if needed (Windows only). Add option before everything else\n\n");
}
void parse_argument(const char *arg)
@@ -130,6 +132,8 @@ void parse_argument(const char *arg)
print_version();
exit(0);
}
+ if (strcmp(arg, "--win32console") == 0)
+ return;
/* fallthrough */
case 'p':
/* ignore process serial number argument when run as native macosx app */
@@ -170,6 +174,7 @@ void setup_system_prefs(void)
const char *env;
default_prefs.divelist_font = strdup(system_divelist_default_font);
+ default_prefs.font_size = system_divelist_default_font_size;
default_prefs.default_filename = system_default_filename();
env = getenv("LC_MEASUREMENT");