aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-quartz.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamma-quartz.c')
-rw-r--r--src/gamma-quartz.c25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/gamma-quartz.c b/src/gamma-quartz.c
index ba8a4c4..1750c98 100644
--- a/src/gamma-quartz.c
+++ b/src/gamma-quartz.c
@@ -32,26 +32,13 @@ quartz_print_help(FILE *f)
{
fputs(_("Adjust gamma ramps on macOS using Quartz.\n"), f);
fputs("\n", f);
+ direct_print_help(f, LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS);
}
-static int
-quartz_set_option(struct gamma_state *state, const char *key, const char *value)
-{
- (void) state;
- (void) value;
- if (!strcasecmp(key, "preserve")) {
- weprintf(_("Deprecated method parameter ignored: `%s'."), key);
- return 0;
- } else {
- weprintf(_("Unknown method parameter: `%s'."), key);
- return -1;
- }
-}
-
-
-#define quartz_start direct_start
-#define quartz_apply direct_apply
-#define quartz_restore direct_restore
-#define quartz_free direct_free
+#define quartz_set_option direct_set_option
+#define quartz_start direct_start
+#define quartz_apply direct_apply
+#define quartz_restore direct_restore
+#define quartz_free direct_free
const struct gamma_method quartz_gamma_method = GAMMA_METHOD_INIT("quartz", 1, 1, quartz);