spelling fixes for sm3600 backend

merge-requests/540/head
Peter Marschall 2020-08-28 18:55:26 +02:00
rodzic 3e33c9664a
commit a94c17175f
4 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -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:

Wyświetl plik

@ -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)
{

Wyświetl plik

@ -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 :-)
********************************************************************** */

Wyświetl plik

@ -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;