summaryrefslogtreecommitdiff
path: root/user/sane/endian.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/sane/endian.patch')
-rw-r--r--user/sane/endian.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/user/sane/endian.patch b/user/sane/endian.patch
new file mode 100644
index 000000000..f55f01ecc
--- /dev/null
+++ b/user/sane/endian.patch
@@ -0,0 +1,26 @@
+From e1934720c687ed8c6125c75ac658f55b4e1513ce Mon Sep 17 00:00:00 2001
+From: Luiz Angelo Daros de Luca <luizluca@gmail.com>
+Date: Sun, 2 Feb 2020 21:19:15 -0300
+Subject: [PATCH] genesys: fix bigendian build
+
+Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
+---
+ 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 1e1b632bf..cbb43b045 100644
+--- a/backend/genesys/low.cpp
++++ b/backend/genesys/low.cpp
+@@ -546,7 +546,7 @@ Image read_unshuffled_image_from_scanner(Genesys_Device* dev, const ScanSession&
+ }
+
+ #ifdef WORDS_BIGENDIAN
+- if (depth == 16) {
++ if (session.params.depth == 16) {
+ dev->pipeline.push_node<ImagePipelineNodeSwap16BitEndian>();
+ }
+ #endif
+--
+2.24.1
+