summaryrefslogtreecommitdiff
path: root/backend/plustek-pp_tpa.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 17:00:58 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 17:00:58 +0200
commitd087d778ffb62e2713cb848540bcc819470365bd (patch)
treed69692a274dd1c7d0672e6bb7155a0fc106f9d49 /backend/plustek-pp_tpa.c
parentc8bd2513ecba169cff44c09c8058c36987357b18 (diff)
parent3759ce55ba79b8d3b9d8ed247a252273ee7dade3 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'backend/plustek-pp_tpa.c')
-rw-r--r--backend/plustek-pp_tpa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/plustek-pp_tpa.c b/backend/plustek-pp_tpa.c
index 021bad6..f2ca1f0 100644
--- a/backend/plustek-pp_tpa.c
+++ b/backend/plustek-pp_tpa.c
@@ -104,7 +104,7 @@ static void tpaP98SubNoise( pScanData ps, pULong pdwSum, pUShort pwShading,
for (dwLines = _DEF_DARKEST_SKIP; dwLines--; pw += 5400UL)
dwSum += (ULong) *pw;
-
+
*pwShading = (UShort)((*pdwSum - dwSum) / ps->Shade.dwDiv);
}
if (ps->dwShadingPixels != 5400UL) {
@@ -247,7 +247,7 @@ static void tpaP98GetNegativeTempRamData( pScanData ps )
pNegativeTempRam[dw] = (UShort)((pdwNegativeSumTemp[dw1] +
pdwNegativeSumTemp[dw1+1] +
pdwNegativeSumTemp[dw1+2] +
- pdwNegativeSumTemp[dw1+3]) / 128);
+ pdwNegativeSumTemp[dw1+3]) / 128);
/* shift 6 bits */
}
@@ -259,7 +259,7 @@ static void tpaP98GetNegativeTempRamData( pScanData ps )
}
/* do R shading average */
- for (dw = 0; dw < 240; dw++, dw1 += 4) {
+ for (dw = 0; dw < 240; dw++, dw1 += 4) {
pNegativeTempRam2[dw] = (UShort)(
(((pUShort)ps->pScanBuffer1)[dw1] +
((pUShort)ps->pScanBuffer1)[dw1+1] +