Files
ports/graphics/epsonscan2/files/patch-src_Standalone_supervisor.cpp
T
Daniel Tameling 345e28cb1c graphics/epsonscan2: Update 6.6.40.0 => 6.7.70.0
Old version crashes on 15.0-CURRENT amd64.

Also improve port: fix dependencies, add default option AVAHI.

PR:		284127
Approved by:	J.R. Oldroyd <fbsd@opal.com>
Tested by:	rhurlin
MFH:		2025Q1
2025-02-10 22:51:51 +03:00

30 lines
1.1 KiB
C++

--- src/Standalone/supervisor.cpp.orig 2024-09-12 07:10:42 UTC
+++ src/Standalone/supervisor.cpp
@@ -297,7 +297,7 @@ bool Supervisor::CheckScanningError(SDIError outError)
}
bool Supervisor::CheckScanningError(SDIError outError)
{
- if (outEventType == 10)
+ if (outEventType == (SDITransferEventType)10)
{
if (outError != kSDIErrorNone)
{
@@ -3127,7 +3127,7 @@ bool Supervisor::Set_All_Value(void)
}
{
SDIInt current;
- if (device_data.ScanArea.FixedSize == USER_DEFINE)
+ if (device_data.ScanArea.FixedSize == (DocumentSize)USER_DEFINE)
{
current = device_data.ScanArea.PaperEndDetection.select;
}
@@ -4352,7 +4352,7 @@ bool Supervisor::Set_Exclusion_Value(void)
}
{
SDIInt current;
- if (device_data.ScanArea.FixedSize == USER_DEFINE)
+ if (device_data.ScanArea.FixedSize == (DocumentSize)USER_DEFINE)
{
current = device_data.ScanArea.PaperEndDetection.select;
}