Bug 723787 - Neutral sRGB profile matching Argyllcms sRGB.icm
Add gimp_lcms_create_srgb_profile() to libgimpcolor and use it where we used to call cmsCreate_sRGBProfile().
This commit is contained in:

committed by
Michael Natterer

parent
eafe1b9be3
commit
05c5ca3216
@ -357,7 +357,7 @@ color_config_get_rgb_profile (GimpColorConfig *config)
|
||||
if (config->rgb_profile)
|
||||
profile = cmsOpenProfileFromFile (config->rgb_profile, "r");
|
||||
|
||||
return profile ? profile : cmsCreate_sRGBProfile ();
|
||||
return profile ? profile : gimp_lcms_create_srgb_profile ();
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -369,10 +369,10 @@ cdisplay_lcms_changed (GimpColorDisplay *display)
|
||||
cmsUInt32Number softproof_flags = 0;
|
||||
|
||||
if (! src_profile)
|
||||
src_profile = cmsCreate_sRGBProfile ();
|
||||
src_profile = gimp_lcms_create_srgb_profile ();
|
||||
|
||||
if (! dest_profile)
|
||||
dest_profile = cmsCreate_sRGBProfile ();
|
||||
dest_profile = gimp_lcms_create_srgb_profile ();
|
||||
|
||||
softproof_flags |= cmsFLAGS_SOFTPROOFING;
|
||||
|
||||
@ -409,10 +409,10 @@ cdisplay_lcms_changed (GimpColorDisplay *display)
|
||||
cmsUInt32Number display_flags = 0;
|
||||
|
||||
if (! src_profile)
|
||||
src_profile = cmsCreate_sRGBProfile ();
|
||||
src_profile = gimp_lcms_create_srgb_profile ();
|
||||
|
||||
if (! dest_profile)
|
||||
dest_profile = cmsCreate_sRGBProfile ();
|
||||
dest_profile = gimp_lcms_create_srgb_profile ();
|
||||
|
||||
if (config->display_use_black_point_compensation)
|
||||
{
|
||||
|
@ -460,7 +460,7 @@ cdisplay_proof_changed (GimpColorDisplay *display)
|
||||
if (! proof->profile)
|
||||
return;
|
||||
|
||||
rgbProfile = cmsCreate_sRGBProfile ();
|
||||
rgbProfile = gimp_lcms_create_srgb_profile ();
|
||||
|
||||
proofProfile = cmsOpenProfileFromFile (proof->profile, "r");
|
||||
|
||||
|
Reference in New Issue
Block a user