1976507 - [genesys 600dpi only] Canon LiDE 120 produces zoomed-in image which doesn't fit into A4 size

This commit is contained in:
Zdenek Dohnal 2021-07-26 14:04:09 +02:00
parent d5ad1eb673
commit 235268085b
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/backend/genesys/tables_motor.cpp b/backend/genesys/tables_motor.cpp
index e8e89c5..fa75bae 100644
--- a/backend/genesys/tables_motor.cpp
+++ b/backend/genesys/tables_motor.cpp
@@ -472,7 +472,7 @@ void genesys_init_motor_tables()
motor.base_ydpi = 4800;
motor.profiles.push_back({MotorSlope::create_from_steps(62496, 864, 127),
StepType::FULL, 4608});
- motor.profiles.push_back({MotorSlope::create_from_steps(62496, 2010, 63),
+ motor.profiles.push_back({MotorSlope::create_from_steps(62496, 1338, 63),
StepType::HALF, 5360});
motor.profiles.push_back({MotorSlope::create_from_steps(62464, 2632, 3),
StepType::QUARTER, 10528});

View File

@ -14,7 +14,7 @@
Summary: Scanner access software Summary: Scanner access software
Name: sane-backends Name: sane-backends
Version: 1.0.32 Version: 1.0.32
Release: 4%{?dist} Release: 5%{?dist}
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions # lib/ is LGPLv2+, backends are GPLv2+ with exceptions
# Tools are GPLv2+, docs are public domain # Tools are GPLv2+, docs are public domain
# see LICENSE for details # see LICENSE for details
@ -37,6 +37,8 @@ Patch1: sane-backends-1.0.23-soname.patch
Patch2: sane-backends-1.0.23-sane-config-multilib.patch Patch2: sane-backends-1.0.23-sane-config-multilib.patch
# 1934308 - Several Epson devices cannot scan because they fail to set focus # 1934308 - Several Epson devices cannot scan because they fail to set focus
Patch3: sane-epson2-disable-focus.patch Patch3: sane-epson2-disable-focus.patch
# 1976507 - [genesys 600dpi only] Canon LiDE 120 produces zoomed-in image which doesn't fit into A4 size
Patch4: genesys-600dpi-cropped.patch
URL: http://www.sane-project.org URL: http://www.sane-project.org
@ -158,6 +160,7 @@ access image acquisition devices available on the local host.
%patch1 -p1 -b .soname %patch1 -p1 -b .soname
%patch2 -p1 -b .sane-config-multilib %patch2 -p1 -b .sane-config-multilib
%patch3 -p1 -b .disable-focus %patch3 -p1 -b .disable-focus
%patch4 -p1 -b .genesys-600dpi-cropped
%build %build
CFLAGS="%optflags -fno-strict-aliasing" CFLAGS="%optflags -fno-strict-aliasing"
@ -431,6 +434,9 @@ exit 0
%{_unitdir}/saned@.service %{_unitdir}/saned@.service
%changelog %changelog
* Mon Jul 26 2021 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.32-5
- 1976507 - [genesys 600dpi only] Canon LiDE 120 produces zoomed-in image which doesn't fit into A4 size
* Tue Mar 09 2021 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.32-4 * Tue Mar 09 2021 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.32-4
- 1934308 - Several Epson devices cannot scan because they fail to set focus - 1934308 - Several Epson devices cannot scan because they fail to set focus