Restored highlight clipping when highlight reconstruction is turned off.

This commit is contained in:
Emil Martinec 2011-05-02 20:20:33 -05:00
parent 8ac9e46f4f
commit 810432f38e

View File

@ -317,12 +317,12 @@ void RawImageSource::getImage (ColorTemp ctemp, int tran, Imagefloat* image, Pre
rtot*=rm; rtot*=rm;
gtot*=gm; gtot*=gm;
btot*=bm; btot*=bm;
/*if (!hrp.enabled) if (!hrp.enabled)
{ {
rtot=CLIP(rtot); rtot=CLIP(rtot);
gtot=CLIP(gtot); gtot=CLIP(gtot);
btot=CLIP(btot); btot=CLIP(btot);
}*/ }
line_red[j] = rtot; line_red[j] = rtot;
line_grn[j] = gtot; line_grn[j] = gtot;
line_blue[j] = btot; line_blue[j] = btot;
@ -341,12 +341,12 @@ void RawImageSource::getImage (ColorTemp ctemp, int tran, Imagefloat* image, Pre
rtot*=rm; rtot*=rm;
gtot*=gm; gtot*=gm;
btot*=bm; btot*=bm;
/*if (!hrp.enabled) if (!hrp.enabled)
{ {
rtot=CLIP(rtot); rtot=CLIP(rtot);
gtot=CLIP(gtot); gtot=CLIP(gtot);
btot=CLIP(btot); btot=CLIP(btot);
}*/ }
line_red[j] = rtot; line_red[j] = rtot;
line_grn[j] = gtot; line_grn[j] = gtot;
line_blue[j] = btot; line_blue[j] = btot;