mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
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:
parent
3ccd03e226
commit
abb7e85260
@ -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] = {
|
||||
|
Loading…
Reference in New Issue
Block a user