pixma: set#2 of changes for enhancing cropped area scanning for generation >= 3 devices.

merge-requests/1/head
Nicolas Martin 2010-01-18 22:53:03 +01:00
rodzic 1430217e19
commit 1225d43561
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1084,13 +1084,13 @@ post_process_image_data (pixma_t * s, pixma_imagebuf_t * ib)
/* Color to Grayscale convert for CCD sensor */
if (is_ccd_grayscale (s))
gptr = rgb_to_gray (gptr, cptr, s->param->w, c); /******** Changed here *******/
cptr = gptr = rgb_to_gray (gptr, cptr, s->param->w, c); /******** Changed here *******/
else
cptr += cw;
}
}
ib->rptr = mp->imgbuf;
ib->rend = (is_ccd_grayscale (s)) ? gptr : cptr;
ib->rend = cptr;
return mp->data_left_ofs - sptr; /* # of non processed bytes */
}