diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp index 0c73fbc9..12ce3f86 100644 --- a/app/scanner/mainwindow.cpp +++ b/app/scanner/mainwindow.cpp @@ -1317,7 +1317,7 @@ HGUInt MainWindow::getDpi() { SANE_Int value = 0; 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; } diff --git a/app/scanner/sane_device.cpp b/app/scanner/sane_device.cpp index 041de336..d16a7d2c 100644 --- a/app/scanner/sane_device.cpp +++ b/app/scanner/sane_device.cpp @@ -99,7 +99,7 @@ sane_dev::act_result sane_dev::apply(const SANE_Option_Descriptor* desc, int opt if(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}; unsigned int l = 0;