Commit 2dbf1b46 authored by Michael Natterer's avatar Michael Natterer 😴

app: rename gimp_layer_mode_is_linear() to gimp_layer_mode_wants_linear_data()

parent 8771361c
...@@ -134,7 +134,7 @@ AM_LDFLAGS = \ ...@@ -134,7 +134,7 @@ AM_LDFLAGS = \
-Wl,-u,$(SYMPREFIX)internal_procs_init \ -Wl,-u,$(SYMPREFIX)internal_procs_init \
-Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
-Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec \ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec \
-Wl,-u,$(SYMPREFIX)gimp_layer_mode_is_linear -Wl,-u,$(SYMPREFIX)gimp_layer_mode_is_legacy
gimpconsoleldadd = \ gimpconsoleldadd = \
xcf/libappxcf.a \ xcf/libappxcf.a \
......
...@@ -90,7 +90,7 @@ test_config_LDFLAGS = \ ...@@ -90,7 +90,7 @@ test_config_LDFLAGS = \
-Wl,-u,$(SYMPREFIX)internal_procs_init \ -Wl,-u,$(SYMPREFIX)internal_procs_init \
-Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
-Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec \ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec \
-Wl,-u,$(SYMPREFIX)gimp_layer_mode_is_linear -Wl,-u,$(SYMPREFIX)gimp_layer_mode_is_legacy
test_config_LDADD = \ test_config_LDADD = \
../xcf/libappxcf.a \ ../xcf/libappxcf.a \
......
...@@ -444,7 +444,7 @@ gimp_layer_mode_is_legacy (GimpLayerMode mode) ...@@ -444,7 +444,7 @@ gimp_layer_mode_is_legacy (GimpLayerMode mode)
} }
gboolean gboolean
gimp_layer_mode_is_linear (GimpLayerMode mode) gimp_layer_mode_wants_linear_data (GimpLayerMode mode)
{ {
switch (mode) switch (mode)
{ {
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
gboolean gimp_layer_mode_is_legacy (GimpLayerMode mode); gboolean gimp_layer_mode_is_legacy (GimpLayerMode mode);
gboolean gimp_layer_mode_is_linear (GimpLayerMode mode); gboolean gimp_layer_mode_wants_linear_data (GimpLayerMode mode);
GimpLayerColorSpace gimp_layer_mode_get_blend_space (GimpLayerMode mode); GimpLayerColorSpace gimp_layer_mode_get_blend_space (GimpLayerMode mode);
GimpLayerColorSpace gimp_layer_mode_get_composite_space (GimpLayerMode mode); GimpLayerColorSpace gimp_layer_mode_get_composite_space (GimpLayerMode mode);
......
...@@ -159,7 +159,7 @@ gimp_gegl_mode_node_set_mode (GeglNode *node, ...@@ -159,7 +159,7 @@ gimp_gegl_mode_node_set_mode (GeglNode *node,
"operation", gimp_layer_mode_get_operation (mode), "operation", gimp_layer_mode_get_operation (mode),
"layer-mode", mode, "layer-mode", mode,
"opacity", opacity, "opacity", opacity,
"linear", gimp_layer_mode_is_linear (mode), "linear", gimp_layer_mode_wants_linear_data (mode),
"blend-space", gimp_layer_mode_get_blend_space (mode), "blend-space", gimp_layer_mode_get_blend_space (mode),
"composite-space", gimp_layer_mode_get_composite_space (mode), "composite-space", gimp_layer_mode_get_composite_space (mode),
"composite-mode", gimp_layer_mode_get_composite_mode (mode), "composite-mode", gimp_layer_mode_get_composite_mode (mode),
......
...@@ -861,7 +861,7 @@ gimp_brush_core_get_paint_buffer (GimpPaintCore *paint_core, ...@@ -861,7 +861,7 @@ gimp_brush_core_get_paint_buffer (GimpPaintCore *paint_core,
GimpTempBuf *temp_buf; GimpTempBuf *temp_buf;
const Babl *format; const Babl *format;
if (gimp_layer_mode_is_linear (paint_mode)) if (gimp_layer_mode_wants_linear_data (paint_mode))
format = babl_format ("RGBA float"); format = babl_format ("RGBA float");
else else
format = babl_format ("R'G'B'A float"); format = babl_format ("R'G'B'A float");
......
...@@ -258,7 +258,7 @@ gimp_ink_get_paint_buffer (GimpPaintCore *paint_core, ...@@ -258,7 +258,7 @@ gimp_ink_get_paint_buffer (GimpPaintCore *paint_core,
GimpTempBuf *temp_buf; GimpTempBuf *temp_buf;
const Babl *format; const Babl *format;
if (gimp_layer_mode_is_linear (paint_mode)) if (gimp_layer_mode_wants_linear_data (paint_mode))
format = babl_format ("RGBA float"); format = babl_format ("RGBA float");
else else
format = babl_format ("R'G'B'A float"); format = babl_format ("R'G'B'A float");
......
...@@ -314,7 +314,7 @@ do_layer_blend (GeglBuffer *src_buffer, ...@@ -314,7 +314,7 @@ do_layer_blend (GeglBuffer *src_buffer,
paint_stride = gimp_temp_buf_get_width (paint_buf); paint_stride = gimp_temp_buf_get_width (paint_buf);
paint_data = (gfloat *) gimp_temp_buf_get_data (paint_buf); paint_data = (gfloat *) gimp_temp_buf_get_data (paint_buf);
linear = gimp_layer_mode_is_linear (paint_mode); linear = gimp_layer_mode_wants_linear_data (paint_mode);
apply_func = gimp_get_layer_mode_function (paint_mode); apply_func = gimp_get_layer_mode_function (paint_mode);
blend_space = gimp_layer_mode_get_blend_space (paint_mode); blend_space = gimp_layer_mode_get_blend_space (paint_mode);
composite_space = gimp_layer_mode_get_composite_space (paint_mode); composite_space = gimp_layer_mode_get_composite_space (paint_mode);
......
...@@ -74,7 +74,7 @@ AM_LDFLAGS = \ ...@@ -74,7 +74,7 @@ AM_LDFLAGS = \
-Wl,-u,$(SYMPREFIX)internal_procs_init \ -Wl,-u,$(SYMPREFIX)internal_procs_init \
-Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
-Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec \ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec \
-Wl,-u,$(SYMPREFIX)gimp_layer_mode_is_linear \ -Wl,-u,$(SYMPREFIX)gimp_layer_mode_is_legacy \
-Wl,-u,$(SYMPREFIX)gui_init \ -Wl,-u,$(SYMPREFIX)gui_init \
-Wl,-u,$(SYMPREFIX)gimp_lebl_dialog -Wl,-u,$(SYMPREFIX)gimp_lebl_dialog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment