kopia lustrzana https://gitlab.com/sane-project/backends
Fix a bug introduced during refactoring that caused discolored stripes to appear at the left and right sides of the scan area.
rodzic
a64477bf1a
commit
db7f038f10
|
@ -1341,7 +1341,7 @@ AdjustAD (Scanner_State * st)
|
||||||
range = 1.0 - (double) (wMaxValue[i] - wMinValue[i]) / MAX_LEVEL_RANGE;
|
range = 1.0 - (double) (wMaxValue[i] - wMinValue[i]) / MAX_LEVEL_RANGE;
|
||||||
if (range > 0)
|
if (range > 0)
|
||||||
{
|
{
|
||||||
st->chip.AD.Gain[i] = (SANE_Byte) range * 63 * 6 / 5;
|
st->chip.AD.Gain[i] = (SANE_Byte) (range * 63 * 6 / 5);
|
||||||
st->chip.AD.Gain[i] = _MIN (st->chip.AD.Gain[i], 63);
|
st->chip.AD.Gain[i] = _MIN (st->chip.AD.Gain[i], 63);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Ładowanie…
Reference in New Issue