From 2bec01cf60a487f0752205d2e44586d18434b83d Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Mon, 13 Apr 2020 07:19:54 +0300 Subject: [PATCH] genesys: Simplify optical pixel calculations on gl646 --- backend/genesys/low.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/genesys/low.cpp b/backend/genesys/low.cpp index 7a3da0d3a..a33d77e25 100644 --- a/backend/genesys/low.cpp +++ b/backend/genesys/low.cpp @@ -976,7 +976,7 @@ void compute_session(const Genesys_Device* dev, ScanSession& s, const Genesys_Se } if (dev->model->asic_type == AsicType::GL646 && s.params.xres == 400) { - s.optical_pixels = (s.optical_pixels / 6) * 6; + s.optical_pixels = align_multiple_floor(s.optical_pixels, 6); } if (dev->model->asic_type == AsicType::GL843) {