aboutsummaryrefslogtreecommitdiffstats
path: root/community/sane/endian.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/sane/endian.patch')
-rw-r--r--community/sane/endian.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/sane/endian.patch b/community/sane/endian.patch
new file mode 100644
index 0000000000..a5430989c6
--- /dev/null
+++ b/community/sane/endian.patch
@@ -0,0 +1,25 @@
+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