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;