summaryrefslogtreecommitdiff
path: root/backend/mustek_pp_ccd300.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-10-08 12:32:49 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-10-08 12:32:49 +0200
commitcfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (patch)
tree56cb8849a5df91b19b72fd4f48c79c343cd9bc5e /backend/mustek_pp_ccd300.c
parentba8d09abe681600aad991f4a75e904615b7ed29f (diff)
Imported Upstream version 1.0.25upstream/1.0.25
Diffstat (limited to 'backend/mustek_pp_ccd300.c')
-rw-r--r--backend/mustek_pp_ccd300.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/backend/mustek_pp_ccd300.c b/backend/mustek_pp_ccd300.c
index c5351a4..41ad0ec 100644
--- a/backend/mustek_pp_ccd300.c
+++ b/backend/mustek_pp_ccd300.c
@@ -940,10 +940,10 @@ get_color_line_101x (Mustek_pp_Handle * dev, SANE_Byte * buf)
wait_bank_change (dev, priv->bank_count, 1);
reset_bank_count (dev);
if (priv->ccd_line >= (priv->line_step >> SANE_FIXED_SCALE_SHIFT))
- priv->redline = ++priv->redline % priv->green_offs;
+ priv->redline = (priv->redline + 1) % priv->green_offs;
if (priv->ccd_line >=
priv->blue_offs + (priv->line_step >> SANE_FIXED_SCALE_SHIFT))
- priv->blueline = ++priv->blueline % priv->blue_offs;
+ priv->blueline = (priv->blueline + 1) % priv->blue_offs;
continue;
}
@@ -979,7 +979,7 @@ get_color_line_101x (Mustek_pp_Handle * dev, SANE_Byte * buf)
}
- priv->redline = ++priv->redline % priv->green_offs;
+ priv->redline = (priv->redline + 1) % priv->green_offs;
if (priv->ccd_line >= priv->green_offs && gogreen)
{
@@ -1013,7 +1013,7 @@ get_color_line_101x (Mustek_pp_Handle * dev, SANE_Byte * buf)
if (priv->ccd_line >=
priv->blue_offs + (priv->line_step >> SANE_FIXED_SCALE_SHIFT))
- priv->blueline = ++priv->blueline % priv->blue_offs;
+ priv->blueline = (priv->blueline + 1) % priv->blue_offs;
if (gogreen)
{
@@ -1660,7 +1660,7 @@ ccd300_open (SANE_String port, SANE_Int caps, SANE_Int * fd)
if (caps & ~(CAP_NOTHING | CAP_INVERT | CAP_LAMP_OFF))
{
- DBG (1, "ccd300_open: called with unknonw capabilities (%#02x)\n",
+ DBG (1, "ccd300_open: called with unknown capabilities (%#02x)\n",
caps);
return SANE_STATUS_INVAL;
}
@@ -1816,7 +1816,7 @@ ccd300_config (SANE_Handle handle, SANE_String_Const optname,
}
else
{
- DBG (1, "ccd300_config: unkown option ``%s''", optname);
+ DBG (1, "ccd300_config: unknown option ``%s''", optname);
return SANE_STATUS_INVAL;
}