修复敦南 安路cis原图扫描不能保存问题
This commit is contained in:
parent
6154008bab
commit
5bd17e89b2
Binary file not shown.
|
@ -358,7 +358,7 @@ void CHuaGoCorrectDlg::Scan()
|
|||
config.g400params.dpi = m_iDpiIndex == 0 ? 1 : (m_iDpiIndex == 1 ? 2 : 3);//only support 200DPI ;// 1;//only support 200DPI
|
||||
config.g400params.pageSize = 0;
|
||||
config.g400params.isCorrect = !((CButton*)GetDlgItem(IDC_CKBORGINIMG))->GetCheck();
|
||||
config.g400params.lutmode = ((CButton*)GetDlgItem(IDC_CKBLUTMODE))->GetCheck();
|
||||
//config.g400params.lutmode = ((CButton*)GetDlgItem(IDC_CKBLUTMODE))->GetCheck();
|
||||
config.g400params.isColor = m_iColorIndex == 1 ? 1 : 0;
|
||||
config.g400params.doubleFeeded = TRUE;
|
||||
config.g400params.enableStable = FALSE;
|
||||
|
|
|
@ -589,8 +589,8 @@ void gscan3399::get_imgdata()
|
|||
{
|
||||
if (is_bulktransferring())
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
return;
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
continue;
|
||||
}
|
||||
imgremains++;
|
||||
auto& buffi = im_data;
|
||||
|
@ -607,7 +607,7 @@ void gscan3399::get_imgdata()
|
|||
|
||||
bool gscan3399::is_runing()
|
||||
{
|
||||
return scanner_read_reg(m_usb, SR_STATUS) & 0x01;
|
||||
return scanner_read_reg(m_usb, SR_STATUS) & 0x03;
|
||||
}
|
||||
|
||||
bool gscan3399::bulk_starttransfer()
|
||||
|
@ -686,7 +686,6 @@ void gscan3399::usb_run()
|
|||
switch (info.From)
|
||||
{
|
||||
case IMG:
|
||||
if (is_runing())
|
||||
get_imgdata();
|
||||
break;
|
||||
case AutoCorrect:
|
||||
|
|
Loading…
Reference in New Issue