Use those other averages. (#41)

This commit is contained in:
Rohit Nirmal 2016-04-22 12:57:04 -05:00 committed by Ryan C. Gordon
parent 7213794459
commit cb3f3bf521

View File

@ -634,8 +634,8 @@ BOOL CBrushShadowMap::IsShadowFlat( COLOR &colFlat)
const SLONG slAvgR = ((ULONG)ubR + ubR1) /2;
const SLONG slAvgG = ((ULONG)ubG + ubG1) /2;
const SLONG slAvgB = ((ULONG)ubB + ubB1) /2;
if( gp.gp_bDark) { slR -= slAvgR; slG -= slAvgR; slB -= slAvgR; }
else { slR += slAvgR; slG += slAvgR; slB += slAvgR; }
if( gp.gp_bDark) { slR -= slAvgR; slG -= slAvgG; slB -= slAvgB; }
else { slR += slAvgR; slG += slAvgG; slB += slAvgB; }
}
}