Commit 0584fc0e authored by Alexandre Prokoudine's avatar Alexandre Prokoudine
Browse files

psd: add stubs for Darker Color and Lighter Color layer modes

parent b471c90a
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment