From 19f734335519996395113c6acbde949dfc60e167 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Thu, 27 May 2010 00:17:47 +0200 Subject: Let gamma methods and location providers print help on option parameters. --- src/gamma-randr.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gamma-randr.c') diff --git a/src/gamma-randr.c b/src/gamma-randr.c index ec70746..990ac91 100644 --- a/src/gamma-randr.c +++ b/src/gamma-randr.c @@ -290,6 +290,17 @@ randr_free(randr_state_t *state) xcb_disconnect(state->conn); } +void +randr_print_help(FILE *f) +{ + fputs(_("Adjust gamma ramps with the X RANDR extension.\n"), f); + fputs("\n", f); + + fputs(_(" screen=N\tX screen to apply adjustments to\n" + " crtc=N\tCRTC to apply adjustments to\n"), f); + fputs("\n", f); +} + static int randr_set_temperature_for_crtc(randr_state_t *state, int crtc_num, int temp, float gamma[3]) -- cgit v1.2.3-70-g09d2