[gimp] app: add TRC variants to get_layer_mode_function()
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add TRC variants to get_layer_mode_function()
- Date: Thu, 12 Jan 2017 14:19:05 +0000 (UTC)
commit dc5b86f0eb963bf9ed8cfd8950b6183af4f1d4c5
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jan 12 15:18:44 2017 +0100
app: add TRC variants to get_layer_mode_function()
.../layer-modes/gimplayermodefunctions.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/operations/layer-modes/gimplayermodefunctions.c
b/app/operations/layer-modes/gimplayermodefunctions.c
index 23dde0f..fe4a5e7 100644
--- a/app/operations/layer-modes/gimplayermodefunctions.c
+++ b/app/operations/layer-modes/gimplayermodefunctions.c
@@ -86,6 +86,7 @@ get_layer_mode_function (GimpLayerMode paint_mode,
switch (paint_mode)
{
case GIMP_LAYER_MODE_NORMAL:
+ case GIMP_LAYER_MODE_NORMAL_NON_LINEAR:
func = gimp_operation_normal_process_pixels;
break;
@@ -94,6 +95,7 @@ get_layer_mode_function (GimpLayerMode paint_mode,
break;
case GIMP_LAYER_MODE_BEHIND:
+ case GIMP_LAYER_MODE_BEHIND_NON_LINEAR:
func = gimp_operation_behind_process_pixels;
break;
@@ -102,6 +104,7 @@ get_layer_mode_function (GimpLayerMode paint_mode,
break;
case GIMP_LAYER_MODE_MULTIPLY:
+ case GIMP_LAYER_MODE_MULTIPLY_LINEAR:
func = gimp_operation_multiply_process_pixels;
break;
@@ -288,7 +291,6 @@ get_layer_mode_function (GimpLayerMode paint_mode,
case GIMP_LAYER_MODE_ANTI_ERASE:
func = gimp_operation_anti_erase_process_pixels;
break;
-
default:
g_warning ("No direct function for layer mode (%d), using gimp:normal",
paint_mode);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]