From bd581d8ca484c3d9fba3c414bca7f79049916aa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Voltz?= Date: Fri, 5 Aug 2011 07:17:36 +0200 Subject: [PATCH] handle cache calibration for scan resolution higher than sensor's one - x scan resolution may be higher than sensor's one, in this case use sensor resolution for calibration cache --- backend/genesys_low.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/genesys_low.c b/backend/genesys_low.c index 146e5d9f5..b55917f77 100644 --- a/backend/genesys_low.c +++ b/backend/genesys_low.c @@ -1379,6 +1379,10 @@ sanei_genesys_is_compatible_calibration (Genesys_Device * dev, if (dev->model->is_cis == SANE_FALSE) { resolution = dev->settings.xres; + if(resolution>dev->sensor.optical_res) + { + resolution=dev->sensor.optical_res; + } compatible = (resolution == ((int) cache->used_setup.xres)); } else