[gimp/pippin/linear-is-the-new-black] app: gimp_composite_blend initialize all fishes to NULL
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/pippin/linear-is-the-new-black] app: gimp_composite_blend initialize all fishes to NULL
- Date: Tue, 17 Jan 2017 20:23:40 +0000 (UTC)
commit 27db04812960d54f509bcb4ce7d8476b3bfa1447
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Jan 17 21:20:45 2017 +0100
app: gimp_composite_blend initialize all fishes to NULL
.../layer-modes/gimpoperationpointlayermode.h | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/app/operations/layer-modes/gimpoperationpointlayermode.h
b/app/operations/layer-modes/gimpoperationpointlayermode.h
index e04b430..27d086a 100644
--- a/app/operations/layer-modes/gimpoperationpointlayermode.h
+++ b/app/operations/layer-modes/gimpoperationpointlayermode.h
@@ -122,20 +122,17 @@ gimp_composite_blend (gfloat *in,
gfloat *blend_in = in;
gfloat *blend_layer = layer;
gfloat *blend_out = out;
- const Babl *fish_to_blend;
- const Babl *fish_to_composite;
- const Babl *fish_from_composite;
+ const Babl *fish_to_blend = NULL;
+ const Babl *fish_to_composite = NULL;
+ const Babl *fish_from_composite = NULL;
switch (blend_trc)
{
case GIMP_LAYER_BLEND_RGB_LINEAR:
- fish_to_blend = NULL;
switch (composite_trc)
{
default:
case GIMP_LAYER_BLEND_RGB_LINEAR:
- fish_to_composite = NULL;
- fish_from_composite = NULL;
break;
case GIMP_LAYER_BLEND_RGB_PERCEPTUAL:
fish_to_composite = _gimp_fish_rgba_to_perceptual;
@@ -150,7 +147,6 @@ gimp_composite_blend (gfloat *in,
default:
case GIMP_LAYER_BLEND_RGB_LINEAR:
fish_to_composite = _gimp_fish_laba_to_rgba;
- fish_from_composite = NULL;
break;
case GIMP_LAYER_BLEND_RGB_PERCEPTUAL:
fish_to_composite = _gimp_fish_laba_to_perceptual;
@@ -165,10 +161,8 @@ gimp_composite_blend (gfloat *in,
default:
case GIMP_LAYER_BLEND_RGB_LINEAR:
fish_to_composite = _gimp_fish_perceptual_to_rgba;
- fish_from_composite = NULL;
break;
case GIMP_LAYER_BLEND_RGB_PERCEPTUAL:
- fish_to_composite = NULL;
fish_from_composite = _gimp_fish_perceptual_to_rgba;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]