[gimp/pippin/linear-is-the-new-black: 9/12] app: make more layer modes be linear, moving towards RGBA default format
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/pippin/linear-is-the-new-black: 9/12] app: make more layer modes be linear, moving towards RGBA default format
- Date: Mon, 16 Jan 2017 22:32:32 +0000 (UTC)
commit c49ef238fef4f8647e11583872ff4d9ad29f70b5
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Jan 16 16:35:03 2017 +0100
app: make more layer modes be linear, moving towards RGBA default format
app/core/gimp-layer-modes.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimp-layer-modes.c b/app/core/gimp-layer-modes.c
index eb31aa9..246553c 100644
--- a/app/core/gimp-layer-modes.c
+++ b/app/core/gimp-layer-modes.c
@@ -98,11 +98,13 @@ gimp_layer_mode_is_linear (GimpLayerMode mode)
case GIMP_LAYER_MODE_COLOR_ERASE:
case GIMP_LAYER_MODE_OVERLAY:
+ return FALSE;
+
case GIMP_LAYER_MODE_LCH_HUE:
case GIMP_LAYER_MODE_LCH_CHROMA:
case GIMP_LAYER_MODE_LCH_COLOR:
case GIMP_LAYER_MODE_LCH_LIGHTNESS:
- return FALSE;
+ return TRUE;
case GIMP_LAYER_MODE_NORMAL:
return TRUE;
@@ -125,7 +127,7 @@ gimp_layer_mode_is_linear (GimpLayerMode mode)
case GIMP_LAYER_MODE_SOFTLIGHT:
case GIMP_LAYER_MODE_GRAIN_EXTRACT:
case GIMP_LAYER_MODE_GRAIN_MERGE:
- return FALSE;
+ return TRUE;
case GIMP_LAYER_MODE_BEHIND_LINEAR:
case GIMP_LAYER_MODE_MULTIPLY_LINEAR:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]