aboutsummaryrefslogblamecommitdiffstats
path: root/community/sane/endian.patch
blob: a5430989c67412b6db6ecd366e8686d50a5d1738 (plain) (tree)
























                                                                                                    
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