From a94c17175f2bd3bf541fc62ff1036351c44eefa0 Mon Sep 17 00:00:00 2001 From: Peter Marschall Date: Fri, 28 Aug 2020 18:55:26 +0200 Subject: [PATCH] spelling fixes for sm3600 backend --- backend/sm3600-color.c | 8 ++++---- backend/sm3600-homerun.c | 2 +- backend/sm3600-scanutil.c | 2 +- backend/sm3600.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/sm3600-color.c b/backend/sm3600-color.c index 2e42ada17..1bc7deded 100644 --- a/backend/sm3600-color.c +++ b/backend/sm3600-color.c @@ -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: diff --git a/backend/sm3600-homerun.c b/backend/sm3600-homerun.c index b77a76eca..ebbda54ca 100644 --- a/backend/sm3600-homerun.c +++ b/backend/sm3600-homerun.c @@ -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) { diff --git a/backend/sm3600-scanutil.c b/backend/sm3600-scanutil.c index 022984e08..68b5fcc74 100644 --- a/backend/sm3600-scanutil.c +++ b/backend/sm3600-scanutil.c @@ -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 :-) ********************************************************************** */ diff --git a/backend/sm3600.c b/backend/sm3600.c index 8f8adfc91..dc6929e08 100644 --- a/backend/sm3600.c +++ b/backend/sm3600.c @@ -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;