diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-06 16:57:49 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-06 16:57:49 +0100 |
commit | 4c3cd7fde636946bb806d9b2d025c59418fa4e85 (patch) | |
tree | 5fccfab94b4ee535c4627be80a9ea92e5ae291b2 /src/gamma-quartz.c | |
parent | Style (diff) | |
download | redshift-ng-4c3cd7fde636946bb806d9b2d025c59418fa4e85.tar.gz redshift-ng-4c3cd7fde636946bb806d9b2d025c59418fa4e85.tar.bz2 redshift-ng-4c3cd7fde636946bb806d9b2d025c59418fa4e85.tar.xz |
style and some minor fixes
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r-- | src/gamma-quartz.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gamma-quartz.c b/src/gamma-quartz.c index 30a50d6..0632951 100644 --- a/src/gamma-quartz.c +++ b/src/gamma-quartz.c @@ -83,7 +83,7 @@ quartz_start(struct gamma_state *state, program_mode_t mode) ramp_size = CGDisplayGammaTableCapacity(display); if (!ramp_size) { - weprintf(_("Gamma ramp size too small: %i\n"), ramp_size); + weprintf(_("Gamma ramp size too small: %i"), ramp_size); return -1; } @@ -99,7 +99,7 @@ quartz_start(struct gamma_state *state, program_mode_t mode) /* Copy the ramps to allocated space */ error = CGGetDisplayTransferByTable(display, ramp_size, gamma_r, gamma_g, gamma_b, &sample_count); if (error != kCGErrorSuccess || sample_count != ramp_size) { - weprintf(_("Unable to save current gamma ramp.\n")); + weprintf(_("Unable to save current gamma ramp.")); return -1; } } @@ -135,10 +135,9 @@ static int quartz_set_option(struct gamma_state *state, const char *key, const char *value) { if (!strcasecmp(key, "preserve")) { - weprintf(_("Parameter `%s` is now always on; Use the `%s`" - " command-line option to disable.\n"), key, "-P"); + weprintf(_("Parameter `%s' is now always on; use the `%s' command-line option to disable."), key, "-P"); } else { - weprintf(_("Unknown method parameter: `%s'.\n"), key); + weprintf(_("Unknown method parameter: `%s'."), key); return -1; } |