mirror of https://github.com/GNOME/gimp.git
libgimpwidgets: formatting cleanup in gimp_widget_get_color_transform()
This commit is contained in:
parent
26e2ccbdf3
commit
16971ff186
|
@ -518,9 +518,7 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
||||||
|
|
||||||
if (proof_profile)
|
if (proof_profile)
|
||||||
{
|
{
|
||||||
cmsUInt32Number softproof_flags = 0;
|
cmsUInt32Number softproof_flags = cmsFLAGS_SOFTPROOFING;
|
||||||
|
|
||||||
softproof_flags |= cmsFLAGS_SOFTPROOFING;
|
|
||||||
|
|
||||||
if (config->simulation_use_black_point_compensation)
|
if (config->simulation_use_black_point_compensation)
|
||||||
{
|
{
|
||||||
|
@ -542,13 +540,12 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
||||||
cmsSetAlarmCodes (alarmCodes);
|
cmsSetAlarmCodes (alarmCodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
transform =
|
transform = cmsCreateProofingTransform (src_profile, lcms_src_format,
|
||||||
cmsCreateProofingTransform (src_profile, lcms_src_format,
|
dest_profile, lcms_dest_format,
|
||||||
dest_profile, lcms_dest_format,
|
proof_profile,
|
||||||
proof_profile,
|
config->simulation_intent,
|
||||||
config->simulation_intent,
|
config->display_intent,
|
||||||
config->display_intent,
|
softproof_flags);
|
||||||
softproof_flags);
|
|
||||||
|
|
||||||
gimp_color_profile_close (proof_profile);
|
gimp_color_profile_close (proof_profile);
|
||||||
}
|
}
|
||||||
|
@ -561,11 +558,10 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
||||||
display_flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
|
display_flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
transform =
|
transform = cmsCreateTransform (src_profile, lcms_src_format,
|
||||||
cmsCreateTransform (src_profile, lcms_src_format,
|
dest_profile, lcms_dest_format,
|
||||||
dest_profile, lcms_dest_format,
|
config->display_intent,
|
||||||
config->display_intent,
|
display_flags);
|
||||||
display_flags);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gimp_color_profile_close (src_profile);
|
gimp_color_profile_close (src_profile);
|
||||||
|
|
Loading…
Reference in New Issue