From 56146725d602e4e01f70cc101452d176ca6fdb51 Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Tue, 17 Oct 2023 09:35:32 +0800 Subject: [PATCH] =?UTF-8?q?IAutomaticBorderDetection=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E6=98=A0=E5=B0=84=E4=B8=BA=E5=8C=B9=E9=85=8D=E5=8E=9F=E5=A7=8B?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twain/twain/huagaods.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twain/twain/huagaods.cpp b/twain/twain/huagaods.cpp index f7605d8..340b508 100644 --- a/twain/twain/huagaods.cpp +++ b/twain/twain/huagaods.cpp @@ -2576,13 +2576,13 @@ void huagao_ds::init_support_caps(void) if (Msg::Set == msg) { auto autodetectborder = data.currentItem(); int ret = SCANNER_ERR_OK; - SET_SANE_OPT_EX(ret, scanner_, is_size_check, (bool*)&autodetectborder); + SET_SANE_OPT_EX(ret, scanner_, ex_auto_paper_size, (bool*)&autodetectborder); return ret == SCANNER_ERR_OK ? success() : badValue(); } Bool init = false, erase = false; std::vector all; - GET_SANE_OPT_EX(bool, scanner_, is_size_check, NULL, &all); + GET_SANE_OPT_EX(bool, scanner_, ex_auto_paper_size, NULL, &all); init = (bool)all[sane_opts::RANGE_POS_DEFAULT]; erase = (bool)all[sane_opts::RANGE_POS_CURRENT]; return CapSupGetAllReset(msg, data, { false,true }, erase, init, erase ? 1 : 0, 0);