Fixed Black and White Total in absolute mode issue 2010
This commit is contained in:
@@ -563,6 +563,11 @@ namespace rtengine {
|
||||
mixerRed = mixerRed / (mixerRed + mixerGreen + mixerBlue);
|
||||
mixerGreen = mixerGreen / (mixerRed + mixerGreen + mixerBlue);
|
||||
mixerBlue = mixerBlue / (mixerRed + mixerGreen + mixerBlue);
|
||||
if(filter!="None") {
|
||||
som = mixerRed+mixerGreen+mixerBlue;
|
||||
if(setting=="RGB-Abs" || setting=="ROYGCBPM-Abs") kcorec = kcorec*som;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Color::calcGamma (double pwr, double ts, int mode, int imax, double &gamma0, double &gamma1, double &gamma2, double &gamma3, double &gamma4, double &gamma5) {
|
||||
|
@@ -1051,8 +1051,8 @@ void BlackWhite::updateRGBLabel () {
|
||||
Glib::ustring::format(std::fixed, std::setprecision(1), r*100.),
|
||||
Glib::ustring::format(std::fixed, std::setprecision(1), g*100.),
|
||||
Glib::ustring::format(std::fixed, std::setprecision(1), b*100.),
|
||||
Glib::ustring::format(std::fixed, std::setprecision(0), (r+g+b)*100.))
|
||||
);
|
||||
Glib::ustring::format(std::fixed, std::setprecision(0), ceil(kcorrec*100./*(r+g+b)*100.)*/)))
|
||||
);
|
||||
// We have to update the RGB sliders too if preset values has been chosen
|
||||
if (sSetting != "RGB-Abs" && sSetting != "RGB-Rel" && sSetting != "ROYGCBPM-Abs" && sSetting != "ROYGCBPM-Rel") {
|
||||
mixerRed->setValue(mixR);
|
||||
|
Reference in New Issue
Block a user