mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimpconfig: add "optimize" options for display and softproofing
Honor them in gimp_widget_get_color_transform() and make them configurable in prefs. The code and GUI avoid the negation in the lcms "NOOPTIMIZE" flag.
This commit is contained in:
parent
8abf1aab5e
commit
a743ae712b
5 changed files with 108 additions and 14 deletions
|
@ -774,11 +774,8 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
|||
if (gimp_color_config_get_simulation_bpc (config))
|
||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_BLACK_POINT_COMPENSATION;
|
||||
|
||||
#if 0
|
||||
/* FIXME add this to GimpColorConfig */
|
||||
if (gimp_color_config_get_simulation_nooptimize (config))
|
||||
if (! gimp_color_config_get_simulation_optimize (config))
|
||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_NOOPTIMIZE;
|
||||
#endif
|
||||
|
||||
if (gimp_color_config_get_simulation_gamut_check (config))
|
||||
{
|
||||
|
@ -813,11 +810,8 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
|||
if (gimp_color_config_get_display_bpc (config))
|
||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_BLACK_POINT_COMPENSATION;
|
||||
|
||||
#if 0
|
||||
/* FIXME add this to GimpColorConfig */
|
||||
if (gimp_color_config_get_display_nooptimize (config))
|
||||
if (! gimp_color_config_get_display_optimize (config))
|
||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_NOOPTIMIZE;
|
||||
#endif
|
||||
|
||||
cache->transform =
|
||||
gimp_color_transform_new (cache->src_profile,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue