libgimpcolor: return an optional MD5 digest from gimp_lcms_create_srgb_profile()
pass NULL in most places, use the feature in the lcms.c plu-gin.
This commit is contained in:
@ -357,7 +357,7 @@ color_config_get_rgb_profile (GimpColorConfig *config)
|
||||
if (config->rgb_profile)
|
||||
profile = cmsOpenProfileFromFile (config->rgb_profile, "r");
|
||||
|
||||
return profile ? profile : gimp_lcms_create_srgb_profile ();
|
||||
return profile ? profile : gimp_lcms_create_srgb_profile (NULL);
|
||||
}
|
||||
|
||||
static cmsHPROFILE
|
||||
|
@ -318,10 +318,10 @@ cdisplay_lcms_changed (GimpColorDisplay *display)
|
||||
cmsUInt32Number softproof_flags = 0;
|
||||
|
||||
if (! src_profile)
|
||||
src_profile = gimp_lcms_create_srgb_profile ();
|
||||
src_profile = gimp_lcms_create_srgb_profile (NULL);
|
||||
|
||||
if (! dest_profile)
|
||||
dest_profile = gimp_lcms_create_srgb_profile ();
|
||||
dest_profile = gimp_lcms_create_srgb_profile (NULL);
|
||||
|
||||
softproof_flags |= cmsFLAGS_SOFTPROOFING;
|
||||
|
||||
@ -358,10 +358,10 @@ cdisplay_lcms_changed (GimpColorDisplay *display)
|
||||
cmsUInt32Number display_flags = 0;
|
||||
|
||||
if (! src_profile)
|
||||
src_profile = gimp_lcms_create_srgb_profile ();
|
||||
src_profile = gimp_lcms_create_srgb_profile (NULL);
|
||||
|
||||
if (! dest_profile)
|
||||
dest_profile = gimp_lcms_create_srgb_profile ();
|
||||
dest_profile = gimp_lcms_create_srgb_profile (NULL);
|
||||
|
||||
if (config->display_use_black_point_compensation)
|
||||
{
|
||||
|
@ -384,7 +384,7 @@ cdisplay_proof_changed (GimpColorDisplay *display)
|
||||
if (! proof->profile)
|
||||
return;
|
||||
|
||||
rgb_profile = gimp_lcms_create_srgb_profile ();
|
||||
rgb_profile = gimp_lcms_create_srgb_profile (NULL);
|
||||
|
||||
proof_profile = cmsOpenProfileFromFile (proof->profile, "r");
|
||||
|
||||
|
Reference in New Issue
Block a user