Fix calculation of pixel number used in calibration

merge-requests/1/head
Pierre Willenbrock 2009-03-21 14:27:06 +00:00
rodzic d2fb13c37d
commit 8994e0cb07
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -1,6 +1,7 @@
2009-03-19 Pierre Willenbrock <pierre@pirsoft.dnsalias.org>
* backend/genesys_devices.c: Enable Motor again for combined
dark/bright calibration
dark/bright calibration, fix calculation of pixel number used in
calibration
2009-03-21 m. allan noah <kitno455 a t gmail d o t com>
* backend/fujitsu.[ch]: backend v91

Wyświetl plik

@ -3396,8 +3396,8 @@ genesys_flatbed_calibration (Genesys_Device * dev)
}
/*y_size * xres? y_size hopefully in inches, then*/
pixels_per_line = dev->model->y_size * dev->settings.xres;
pixels_per_line = (SANE_UNFIX(dev->model->x_size) * dev->settings.xres) /
MM_PER_INCH;
/* send default shading data */
status = sanei_genesys_init_shading_data (dev, pixels_per_line);