[gimp] app: use the GimpBlendFunc typedef in gimpblendcomposite.h
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use the GimpBlendFunc typedef in gimpblendcomposite.h
- Date: Thu, 19 Jan 2017 13:46:49 +0000 (UTC)
commit 4683b986f3b7e2b49ba766a9b318b2ce089625a8
Author: Michael Natterer <mitch gimp org>
Date: Thu Jan 19 14:45:49 2017 +0100
app: use the GimpBlendFunc typedef in gimpblendcomposite.h
app/operations/layer-modes/gimpblendcomposite.h | 25 ++++++++++------------
1 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/app/operations/layer-modes/gimpblendcomposite.h b/app/operations/layer-modes/gimpblendcomposite.h
index 8f65955..a25215e 100644
--- a/app/operations/layer-modes/gimpblendcomposite.h
+++ b/app/operations/layer-modes/gimpblendcomposite.h
@@ -155,19 +155,16 @@ compfun_src_in (gfloat *in,
}
static inline void
-gimp_composite_blend (gfloat *in,
- gfloat *layer,
- gfloat *mask,
- gfloat *out,
- gfloat opacity,
- glong samples,
- GimpLayerBlendTRC blend_trc,
- GimpLayerBlendTRC composite_trc,
- GimpLayerCompositeMode composite_mode,
- void (*blendfun) (const float *dst,
- const float *src,
- float *out,
- int samples))
+gimp_composite_blend (gfloat *in,
+ gfloat *layer,
+ gfloat *mask,
+ gfloat *out,
+ gfloat opacity,
+ glong samples,
+ GimpLayerBlendTRC blend_trc,
+ GimpLayerBlendTRC composite_trc,
+ GimpLayerCompositeMode composite_mode,
+ GimpBlendFunc blend_func)
{
gfloat *blend_in = in;
gfloat *blend_layer = layer;
@@ -250,7 +247,7 @@ gimp_composite_blend (gfloat *in,
babl_process (fish_to_blend, layer, blend_layer, samples);
}
- blendfun (blend_in, blend_layer, blend_out, samples);
+ blend_func (blend_in, blend_layer, blend_out, samples);
if (fish_to_composite)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]