[gimp] psd: add stubs for Darker Color and Lighter Color layer modes
- From: Alexandre Prokoudine <aprokoudine src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] psd: add stubs for Darker Color and Lighter Color layer modes
- Date: Sat, 4 Feb 2017 14:29:32 +0000 (UTC)
commit 0584fc0e45433616ee366dc2de032e0e147c9482
Author: Alexandre Prokoudine <alexandre prokoudine gmail com>
Date: Sat Feb 4 17:28:13 2017 +0300
psd: add stubs for Darker Color and Lighter Color layer modes
plug-ins/file-psd/psd-util.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/file-psd/psd-util.c b/plug-ins/file-psd/psd-util.c
index fb8c699..3a35f79 100644
--- a/plug-ins/file-psd/psd-util.c
+++ b/plug-ins/file-psd/psd-util.c
@@ -738,6 +738,30 @@ psd_to_gimp_blend_mode (const gchar *psd_mode,
return GIMP_LAYER_MODE_NORMAL;
}
+ if (g_ascii_strncasecmp (psd_mode, "dkCl", 4) == 0) /* Darker Color */
+ {
+ if (CONVERSION_WARNINGS)
+ {
+ static gchar *mode_name = "DARKER COLOR";
+ g_message ("Unsupported blend mode: %s. Mode reverts to normal",
+ mode_name);
+ }
+ if (layer_composite) *layer_composite = GIMP_LAYER_COMPOSITE_AUTO;
+ return GIMP_LAYER_MODE_NORMAL;
+ }
+
+ if (g_ascii_strncasecmp (psd_mode, "lgCl", 4) == 0) /* Lighter Color */
+ {
+ if (CONVERSION_WARNINGS)
+ {
+ static gchar *mode_name = "LIGHTER COLOR";
+ g_message ("Unsupported blend mode: %s. Mode reverts to normal",
+ mode_name);
+ }
+ if (layer_composite) *layer_composite = GIMP_LAYER_COMPOSITE_AUTO;
+ return GIMP_LAYER_MODE_NORMAL;
+ }
+
if (CONVERSION_WARNINGS)
{
gchar *mode_name = g_strndup (psd_mode, 4);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]