From 654fdbfcf7a7862db41529d285c84d58ca8f9788 Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Wed, 15 Jun 2022 09:47:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 2 +- hgdriver/hgdev/hg_scanner_239.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 8c83ff5..59ebc76 100755 --- a/build.sh +++ b/build.sh @@ -7,7 +7,7 @@ mainverstr="s/ver_1/4/g" #版本控制 minver="06" minverstr="s/ver_2/" - +sudo apt install libudev-dev if [ "$sys" == "UnionTech" ];then # uos ... diff --git a/hgdriver/hgdev/hg_scanner_239.cpp b/hgdriver/hgdev/hg_scanner_239.cpp index 6829d89..4f38871 100644 --- a/hgdriver/hgdev/hg_scanner_239.cpp +++ b/hgdriver/hgdev/hg_scanner_239.cpp @@ -883,7 +883,7 @@ else { ic.cropRect.enable = custom_area_; int height = (custom_area_br_y_ *ic.resolution_dst) /25.4 - (custom_area_lt_y_ *ic.resolution_dst /25.4); - int width = (custom_area_br_x_ *ic.resolution_dst) /25.4 - (custom_area_lt_x_ *ic.resolution_dst /25.4); + int width = (custom_area_br_x_ *ic.resolution_dst) /25.4 - (custom_area_lt_x_ *ic.resolution_dst /25.4); ic.cropRect.height = height; ic.cropRect.width = width; ic.cropRect.x = custom_area_lt_x_ *ic.resolution_dst /25.4;