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-w32gdi.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/gamma-w32gdi.c') diff --git a/src/gamma-w32gdi.c b/src/gamma-w32gdi.c index 7425370..2dc12f3 100644 --- a/src/gamma-w32gdi.c +++ b/src/gamma-w32gdi.c @@ -17,8 +17,8 @@ Copyright (c) 2010 Jon Lund Steffensen */ -#include #include +#include #define WINVER 0x0500 #include @@ -42,6 +42,11 @@ w32gdi_init(w32gdi_state_t *state, char *args) { BOOL r; + if (args != NULL) { + fputs(_("Too many arguments.\n"), stderr); + return -1; + } + /* Open device context */ state->hDC = GetDC(NULL); if (state->hDC == NULL) { @@ -86,6 +91,14 @@ w32gdi_free(w32gdi_state_t *state) ReleaseDC(NULL, state->hDC); } + +void +w32gdi_print_help(FILE *f) +{ + fputs(_("Adjust gamma ramps with the Windows GDI.\n"), f); + fputs("\n", f); +} + void w32gdi_restore(w32gdi_state_t *state) { -- cgit v1.2.3-70-g09d2