fix-mustek_pp_ccd300.c.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- a/backend/mustek_pp_ccd300.c.orig 2003-12-01 12:52:19.000000000 +0100
  2. +++ b/backend/mustek_pp_ccd300.c 2009-07-29 16:29:54.000000000 +0200
  3. @@ -940,10 +940,10 @@ get_color_line_101x (Mustek_pp_Handle *
  4. wait_bank_change (dev, priv->bank_count, 1);
  5. reset_bank_count (dev);
  6. if (priv->ccd_line >= (priv->line_step >> SANE_FIXED_SCALE_SHIFT))
  7. - priv->redline = ++priv->redline % priv->green_offs;
  8. + priv->redline = (priv->redline + 1) % priv->green_offs;
  9. if (priv->ccd_line >=
  10. priv->blue_offs + (priv->line_step >> SANE_FIXED_SCALE_SHIFT))
  11. - priv->blueline = ++priv->blueline % priv->blue_offs;
  12. + priv->blueline = (priv->blueline + 1) % priv->blue_offs;
  13. continue;
  14. }
  15. @@ -979,7 +979,7 @@ get_color_line_101x (Mustek_pp_Handle *
  16. }
  17. - priv->redline = ++priv->redline % priv->green_offs;
  18. + priv->redline = (priv->redline + 1) % priv->green_offs;
  19. if (priv->ccd_line >= priv->green_offs && gogreen)
  20. {
  21. @@ -1013,7 +1013,7 @@ get_color_line_101x (Mustek_pp_Handle *
  22. if (priv->ccd_line >=
  23. priv->blue_offs + (priv->line_step >> SANE_FIXED_SCALE_SHIFT))
  24. - priv->blueline = ++priv->blueline % priv->blue_offs;
  25. + priv->blueline = (priv->blueline + 1) % priv->blue_offs;
  26. if (gogreen)
  27. {