Make sure both green autowb multipliers are the same for RGB sensors

This commit is contained in:
torger
2015-01-05 17:42:37 +01:00
parent 0e638ebc4a
commit b4f857f716

View File

@@ -233,6 +233,8 @@ skip_block: ;
}
if (pre_mul_[3] == 0)
pre_mul_[3] = this->get_colors() < 4 ? pre_mul_[1] : 1;
else if (this->get_colors() < 4)
pre_mul_[3] = pre_mul_[1] = (pre_mul_[3] + pre_mul_[1]) / 2;
if (colors == 1)
for (c = 1; c < 4; c++)