修改部分title字段为name字段

This commit is contained in:
yangjiaxuan 2022-10-13 15:14:20 +08:00
parent 14ffcaad36
commit ed9788e18a
2 changed files with 2 additions and 2 deletions

View File

@ -1317,7 +1317,7 @@ HGUInt MainWindow::getDpi()
{ {
SANE_Int value = 0; SANE_Int value = 0;
sane_control_option(cur_dev_.handle(), i, SANE_ACTION_GET_VALUE, &value, nullptr); sane_control_option(cur_dev_.handle(), i, SANE_ACTION_GET_VALUE, &value, nullptr);
if (0 == strcmp(desp->title, OPTION_TITLE_FBL)) if (0 == strcmp(desp->name, SANE_STD_OPT_NAME_RESOLUTION))
{ {
dpi = (HGUInt)value; dpi = (HGUInt)value;
} }

View File

@ -99,7 +99,7 @@ sane_dev::act_result sane_dev::apply(const SANE_Option_Descriptor* desc, int opt
if(str) if(str)
delete[] str; delete[] str;
if(cfg->name == OPTION_TITLE_QYSDQX && cfg->val == "true") if(cfg->name == SANE_STD_OPT_NAME_IS_CUSTOM_GAMMA && cfg->val == "true")
{ {
SANE_Gamma gamma = {0}; SANE_Gamma gamma = {0};
unsigned int l = 0; unsigned int l = 0;