colorstate: Consistent naming

Make the conversion functions use srgb_linear in their names, since
the name of the color state is srgb-linear.
This commit is contained in:
Matthias Clasen 2024-07-08 19:16:08 -04:00
parent 3ccd03e226
commit abb7e85260

View File

@ -174,7 +174,7 @@ srgb_eotf (float v)
}
static void
gdk_default_srgb_to_linear_srgb (GdkColorState *self,
gdk_default_srgb_to_srgb_linear (GdkColorState *self,
float (*values)[4],
gsize n_values)
{
@ -235,7 +235,7 @@ GdkDefaultColorState gdk_default_color_states[] = {
.name = "srgb",
.no_srgb = GDK_COLOR_STATE_SRGB_LINEAR,
.convert_to = {
[GDK_COLOR_STATE_ID_SRGB_LINEAR] = gdk_default_srgb_to_linear_srgb,
[GDK_COLOR_STATE_ID_SRGB_LINEAR] = gdk_default_srgb_to_srgb_linear,
},
},
[GDK_COLOR_STATE_ID_SRGB_LINEAR] = {