diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-23 23:08:43 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-23 23:08:43 +0100 |
commit | 5da69a78f0e2c73977b3643345037ba80d0bed7c (patch) | |
tree | 5950f782bc969b31648f3c3a5ddc40c77f89d71e /src/gamma-w32gdi.c | |
parent | m (diff) | |
download | redshift-ng-5da69a78f0e2c73977b3643345037ba80d0bed7c.tar.gz redshift-ng-5da69a78f0e2c73977b3643345037ba80d0bed7c.tar.bz2 redshift-ng-5da69a78f0e2c73977b3643345037ba80d0bed7c.tar.xz |
Change w32gdi to wingdi to reflect what the method is called for the user
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/gamma-w32gdi.c')
-rw-r--r-- | src/gamma-w32gdi.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/gamma-w32gdi.c b/src/gamma-w32gdi.c deleted file mode 100644 index 751d9fd..0000000 --- a/src/gamma-w32gdi.c +++ /dev/null @@ -1,51 +0,0 @@ -/*- - * redshift-ng - Automatically adjust display colour temperature according the Sun - * - * Copyright (c) 2009-2018 Jon Lund Steffensen <jonlst@gmail.com> - * Copyright (c) 2014-2016, 2025 Mattias Andrée <m@maandree.se> - * - * redshift-ng is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * redshift-ng is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with redshift-ng. If not, see <http://www.gnu.org/licenses/>. - */ -#include "common.h" - - -static int -w32gdi_is_available(void) -{ - return libgamma_is_method_available(LIBGAMMA_METHOD_W32_GDI); -} - - -static int -w32gdi_create(struct gamma_state **state_out) -{ - return direct_create(state_out, LIBGAMMA_METHOD_W32_GDI, "wingdi"); -} - - -static void -w32gdi_print_help(void) -{ - printf(_("Adjust gamma ramps with the Windows GDI.\n")); - printf("\n"); - direct_print_help(LIBGAMMA_METHOD_W32_GDI); -} - - -#define w32gdi_set_option direct_set_option -#define w32gdi_start direct_start -#define w32gdi_apply direct_apply -#define w32gdi_restore direct_restore -#define w32gdi_free direct_free -const struct gamma_method w32gdi_gamma_method = GAMMA_METHOD_INIT("wingdi", 1, 0, w32gdi); |