[PATCH] Re: SANE CVS snapshot (2001-05-30) available

From: Ben Stanley (bds02@uow.edu.au)
Date: Thu May 31 2001 - 07:03:56 PDT

  • Next message: Henning Meier-Geinitz: "Re: [PATCH] Re: SANE CVS snapshot (2001-05-30) available"

    Hi,

    There is a problem with the snapscan driver with Acer Prisa 620s. The
    backend does not send the correct image size when queried with
    get_parameters.

    Here is a patch which fixes it... This change was suggested by Oliver Rauch.

    Ben.


    *** sane-backends-1.0.4/backend/snapscan.c.orig Mon May 28 21:16:22 2001
    --- sane-backends-1.0.4/backend/snapscan.c Mon May 28 21:11:56 2001
    ***************
    *** 2015,2021 ****
              /* use what the source chain says */
              p->pixels_per_line = pss->psrc->pixelsPerLine(pss->psrc);
              p->bytes_per_line = pss->psrc->bytesPerLine(pss->psrc);
    ! p->lines = pss->psrc->remaining(pss->psrc)/p->bytes_per_line;
          }
          else
          {
    --- 2015,2022 ----
              /* use what the source chain says */
              p->pixels_per_line = pss->psrc->pixelsPerLine(pss->psrc);
              p->bytes_per_line = pss->psrc->bytesPerLine(pss->psrc);
    ! /* p->lines = pss->psrc->remaining(pss->psrc)/p->bytes_per_line;*/
    ! p->lines = pss->lines;
          }
          else
          {

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Thu May 31 2001 - 07:04:45 PDT