kopia lustrzana https://gitlab.com/sane-project/backends
spelling fixes for sm3600 backend
rodzic
3e33c9664a
commit
a94c17175f
|
@ -221,13 +221,13 @@ TState StartScanColor(TInstance *this)
|
|||
case 75:
|
||||
RegWrite(this,R_XRES,1, 0x20); /* ups, can do only 100 dpi horizontal */
|
||||
RegWrite(this,R_SWID, 2, 0xC000 | this->state.cxWindow);
|
||||
RegWrite(this,0x34, 1, 0x83); /* halfs the vertical resolution */
|
||||
RegWrite(this,0x34, 1, 0x83); /* halves the vertical resolution */
|
||||
RegWrite(this,0x47,1,0xC0); /* reduces the speed a bit */
|
||||
break;
|
||||
case 100:
|
||||
RegWrite(this,R_XRES,1, 0x20);
|
||||
RegWrite(this,R_SWID, 2, 0xC000 | this->state.cxWindow);
|
||||
RegWrite(this,0x34, 1, 0x63); /* halfs the vertical resolution */
|
||||
RegWrite(this,0x34, 1, 0x63); /* halves the vertical resolution */
|
||||
RegWrite(this,0x47,1,0xC0); /* reduces the speed a bit */
|
||||
/* I have no idea, what these differences are good for. The seem to produce
|
||||
a slight blue presence.
|
||||
|
@ -243,14 +243,14 @@ TState StartScanColor(TInstance *this)
|
|||
RegWrite(this,0x08,2, 0x6A6A);
|
||||
RegWrite(this,R_XRES,1, 0x2A);
|
||||
RegWrite(this,R_SWID, 2, 0x4000 | this->state.cxWindow);
|
||||
RegWrite(this,0x34, 1, 0x03); /* halfs the vertical resolution */
|
||||
RegWrite(this,0x34, 1, 0x03); /* halves the vertical resolution */
|
||||
RegWrite(this,0x47,1,0xC0); /* reduces the speed a bit */
|
||||
this->state.szOrder=ORDER_RGB;
|
||||
break;
|
||||
case 600:
|
||||
RegWrite(this,R_XRES,1, 0x3F);
|
||||
RegWrite(this,R_SWID, 2, 0xC000 | this->state.cxWindow);
|
||||
RegWrite(this,0x34, 1, 0x03); /* halfs the vertical resolution */
|
||||
RegWrite(this,0x34, 1, 0x03); /* halves the vertical resolution */
|
||||
RegWrite(this,0x47,1,0xC2); /* reduces the speed a bit */
|
||||
break;
|
||||
case 1200:
|
||||
|
|
|
@ -181,7 +181,7 @@ static TLineType GetLineType(TInstance *this)
|
|||
else
|
||||
bHolesOk=false;
|
||||
lMedian=lSum/cchBulk;
|
||||
/* this is *definitly* dirty style. We should pass the information
|
||||
/* this is *definitely* dirty style. We should pass the information
|
||||
by other means... */
|
||||
if (bHolesOk)
|
||||
{
|
||||
|
|
|
@ -85,7 +85,7 @@ void debug_printf(unsigned long ulType, const char *szFormat, ...)
|
|||
|
||||
SetError(error, format, ...)
|
||||
|
||||
The program is aborted, all handles and ressources are freed (this
|
||||
The program is aborted, all handles and resources are freed (this
|
||||
being global) and the user gets a nice panic screen :-)
|
||||
|
||||
********************************************************************** */
|
||||
|
|
|
@ -672,7 +672,7 @@ SetupInternalParameters(TInstance *this)
|
|||
SANE_Status
|
||||
sane_get_parameters (SANE_Handle handle, SANE_Parameters *p)
|
||||
{
|
||||
/* extremly important for xscanimage */
|
||||
/* extremely important for xscanimage */
|
||||
TInstance *this;
|
||||
this=(TInstance*)handle;
|
||||
SetupInternalParameters(this);
|
||||
|
@ -714,7 +714,7 @@ sane_start (SANE_Handle handle)
|
|||
if (this->state.bScanning) return SANE_STATUS_DEVICE_BUSY;
|
||||
rc=SetupInternalParameters(this);
|
||||
this->state.bCanceled=false;
|
||||
if (!rc) rc=DoInit(this); /* oopsi, we should initalise :-) */
|
||||
if (!rc) rc=DoInit(this); /* oopsi, we should initialise :-) */
|
||||
if (!rc && !this->bOptSkipOriginate) rc=DoOriginate(this,true);
|
||||
if (!rc) rc=DoJog(this,this->calibration.yMargin);
|
||||
if (rc) return rc;
|
||||
|
|
Ładowanie…
Reference in New Issue