From 9cd7e4573d806f906fc179be7cf791648b42ba3d Mon Sep 17 00:00:00 2001 From: luoliangyi <87842688@qq.com> Date: Fri, 27 May 2022 11:05:17 +0800 Subject: [PATCH] =?UTF-8?q?sane=E5=9B=BE=E5=83=8F=E4=B8=BARGB=E6=97=B6?= =?UTF-8?q?=E4=BD=8D=E6=B7=B1=E4=B8=BA8=E8=80=8C=E4=B8=8D=E6=98=AF24?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3app=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scanner/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp index 0241fd73..8c29a1d1 100644 --- a/app/scanner/mainwindow.cpp +++ b/app/scanner/mainwindow.cpp @@ -2012,8 +2012,7 @@ int MainWindow::sane_ex_callback(SANE_Handle hdev, int code, void *data, unsigne else if (8 == sane_img->header.depth) imgType = HGBASE_IMGTYPE_GRAY; } - else if (sane_img->header.format == SANE_FRAME_RGB - && 24 == sane_img->header.depth) + else if (sane_img->header.format == SANE_FRAME_RGB) { imgType = HGBASE_IMGTYPE_RGB; }