mirror of https://github.com/GNOME/gimp.git
modules: don't use CamelCase variable names in display-filter-proof.c
This commit is contained in:
parent
fea22c345c
commit
a277a5b66f
|
@ -372,8 +372,8 @@ static void
|
||||||
cdisplay_proof_changed (GimpColorDisplay *display)
|
cdisplay_proof_changed (GimpColorDisplay *display)
|
||||||
{
|
{
|
||||||
CdisplayProof *proof = CDISPLAY_PROOF (display);
|
CdisplayProof *proof = CDISPLAY_PROOF (display);
|
||||||
cmsHPROFILE rgbProfile;
|
cmsHPROFILE rgb_profile;
|
||||||
cmsHPROFILE proofProfile;
|
cmsHPROFILE proof_profile;
|
||||||
|
|
||||||
if (proof->transform)
|
if (proof->transform)
|
||||||
{
|
{
|
||||||
|
@ -384,26 +384,26 @@ cdisplay_proof_changed (GimpColorDisplay *display)
|
||||||
if (! proof->profile)
|
if (! proof->profile)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
rgbProfile = gimp_lcms_create_srgb_profile ();
|
rgb_profile = gimp_lcms_create_srgb_profile ();
|
||||||
|
|
||||||
proofProfile = cmsOpenProfileFromFile (proof->profile, "r");
|
proof_profile = cmsOpenProfileFromFile (proof->profile, "r");
|
||||||
|
|
||||||
if (proofProfile)
|
if (proof_profile)
|
||||||
{
|
{
|
||||||
cmsUInt32Number flags = cmsFLAGS_SOFTPROOFING;
|
cmsUInt32Number flags = cmsFLAGS_SOFTPROOFING;
|
||||||
|
|
||||||
if (proof->bpc)
|
if (proof->bpc)
|
||||||
flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
|
flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
|
||||||
|
|
||||||
proof->transform = cmsCreateProofingTransform (rgbProfile, TYPE_RGBA_FLT,
|
proof->transform = cmsCreateProofingTransform (rgb_profile, TYPE_RGBA_FLT,
|
||||||
rgbProfile, TYPE_RGBA_FLT,
|
rgb_profile, TYPE_RGBA_FLT,
|
||||||
proofProfile,
|
proof_profile,
|
||||||
proof->intent,
|
proof->intent,
|
||||||
proof->intent,
|
proof->intent,
|
||||||
flags);
|
flags);
|
||||||
|
|
||||||
cmsCloseProfile (proofProfile);
|
cmsCloseProfile (proof_profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
cmsCloseProfile (rgbProfile);
|
cmsCloseProfile (rgb_profile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue