aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-23 23:08:43 +0100
committerMattias Andrée <m@maandree.se>2025-03-23 23:08:43 +0100
commit5da69a78f0e2c73977b3643345037ba80d0bed7c (patch)
tree5950f782bc969b31648f3c3a5ddc40c77f89d71e
parentm (diff)
downloadredshift-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>
-rw-r--r--src/Makefile2
-rw-r--r--src/common.h2
-rw-r--r--src/gamma-wingdi.c (renamed from src/gamma-w32gdi.c)18
-rw-r--r--src/gamma.c2
4 files changed, 12 insertions, 12 deletions
diff --git a/src/Makefile b/src/Makefile
index d37ae41..a62a0cf 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -19,7 +19,7 @@ OBJ =\
gamma-quartz.o\
gamma-randr.o\
gamma-vidmode.o\
- gamma-w32gdi.o\
+ gamma-wingdi.o\
hooks.o\
location.o\
location-geoclue2.o\
diff --git a/src/common.h b/src/common.h
index 5d3e7a4..f5be542 100644
--- a/src/common.h
+++ b/src/common.h
@@ -1639,7 +1639,7 @@ extern const struct gamma_method randr_gamma_method;
extern const struct gamma_method vidmode_gamma_method;
extern const struct gamma_method drm_gamma_method;
extern const struct gamma_method quartz_gamma_method;
-extern const struct gamma_method w32gdi_gamma_method;
+extern const struct gamma_method wingdi_gamma_method;
extern const struct location_provider manual_location_provider;
#ifdef ENABLE_GEOCLUE2
diff --git a/src/gamma-w32gdi.c b/src/gamma-wingdi.c
index 751d9fd..6d983c5 100644
--- a/src/gamma-w32gdi.c
+++ b/src/gamma-wingdi.c
@@ -21,21 +21,21 @@
static int
-w32gdi_is_available(void)
+wingdi_is_available(void)
{
return libgamma_is_method_available(LIBGAMMA_METHOD_W32_GDI);
}
static int
-w32gdi_create(struct gamma_state **state_out)
+wingdi_create(struct gamma_state **state_out)
{
return direct_create(state_out, LIBGAMMA_METHOD_W32_GDI, "wingdi");
}
static void
-w32gdi_print_help(void)
+wingdi_print_help(void)
{
printf(_("Adjust gamma ramps with the Windows GDI.\n"));
printf("\n");
@@ -43,9 +43,9 @@ w32gdi_print_help(void)
}
-#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);
+#define wingdi_set_option direct_set_option
+#define wingdi_start direct_start
+#define wingdi_apply direct_apply
+#define wingdi_restore direct_restore
+#define wingdi_free direct_free
+const struct gamma_method wingdi_gamma_method = GAMMA_METHOD_INIT("wingdi", 1, 0, wingdi);
diff --git a/src/gamma.c b/src/gamma.c
index 44042d0..8dbb99b 100644
--- a/src/gamma.c
+++ b/src/gamma.c
@@ -28,7 +28,7 @@ const struct gamma_method *gamma_methods[] = {
&randr_gamma_method,
&vidmode_gamma_method,
&quartz_gamma_method,
- &w32gdi_gamma_method,
+ &wingdi_gamma_method,
&dummy_gamma_method,
NULL
};