genesys: Fix pixel calculation during calibration on gl843

merge-requests/79/head
Povilas Kanapickas 2019-05-18 14:56:00 +03:00
rodzic df889c96f5
commit 966ef33710
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -2821,6 +2821,9 @@ gl843_init_regs_for_shading (Genesys_Device * dev)
SCAN_FLAG_DISABLE_BUFFER_FULL_MOVE |
SCAN_FLAG_IGNORE_LINE_DISTANCE);
// the pixel number may be updated to conform to scanner constraints
dev->calib_pixels = dev->current_setup.pixels;
if (status != SANE_STATUS_GOOD)
{
DBG(DBG_error, "%s: failed to setup scan: %s\n", __func__, sane_strstatus(status));