Comment 27 for bug 1327801

Revision history for this message
Pat Suwalski (pat-suwalski) wrote :

Sure, I used `dpkg-buildpackage -b``` to build it.

The change was just to remove the offending condition as was suggested:

diff -ur sane-backends-1.0.29.orig/backend/genesys/low.cpp sane-backends-1.0.29/backend/genesys/low.cpp
--- sane-backends-1.0.29.orig/backend/genesys/low.cpp 2021-02-16 17:18:42.000000000 -0500
+++ sane-backends-1.0.29/backend/genesys/low.cpp 2021-02-16 11:10:24.655216925 -0500
@@ -650,12 +650,6 @@
     if ((session.params.flags & ScanFlag::DISABLE_GAMMA) != ScanFlag::NONE) {
         return false;
     }
- if (sensor.gamma[0] == 1.0f || sensor.gamma[1] == 1.0f || sensor.gamma[2] == 1.0f) {
- return false;
- }
- if (session.params.depth == 16)
- return false;
-
     return true;
 }