fix GL646 CCD line number calculation

merge-requests/1/head
Stphane Voltz 2012-01-02 22:07:44 +01:00
rodzic bd718256e3
commit 562c301059
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1026,12 +1026,12 @@ gl646_setup_registers (Genesys_Device * dev,
regs[reg_0x23].value = motor->fwdbwd;
regs[reg_0x24].value = motor->steps1;
/* we adjust linecnt according to real motor dpi */
linecnt = (linecnt * motor->ydpi) / scan_settings.yres;
/* scanned area height must be enlarged by max color shift needed */
max_shift=sanei_genesys_compute_max_shift(dev,channels,scan_settings.yres,0);
/* we adjust linecnt according to real motor dpi */
linecnt = (linecnt * motor->ydpi) / scan_settings.yres + max_shift;
/* at QUATER_STEP lines are 'staggered' and need correction */
stagger = 0;
if ((!half_ccd) && (dev->model->flags & GENESYS_FLAG_STAGGERED_LINE))