Hello, This is accidental bug introduced just before 1.0.21 release, it is already fixed at 2010-05-03. Your fix is incorrect.
Best regards. On Sun, Apr 03, 2011 at 01:17:56AM +0400, Boris Samorodov wrote: > Hi List, > > On Sat, 02 Apr 2011 11:16:54 +0400 Boris Samorodov wrote: > > > I've got a used Xerox Phaser 6110MFP. Color mode is not functionning > > as expected: color mode produces a greyscale image, Gray and Lineart > > mode produces 1bit color image. > > Seems to be a bug at backend/xerox_mfp.c. The folowing patch fixes > the problem for me: > ----- > --- backend/xerox_mfp.c.orig 2010-04-05 17:18:05.000000000 +0400 > +++ backend/xerox_mfp.c 2011-04-03 00:42:29.000000000 +0400 > @@ -392,7 +392,7 @@ > }; > > static int scan_mode_to_code[] = { > - 0x00, 0x01, 0x03, 0x05 > + 0x01, 0x03, 0x05, 0x00 > }; > > static SANE_Range threshold = { > ----- > > Indeed we have: > ----- > static SANE_String_Const scan_modes[] = { > SANE_VALUE_SCAN_MODE_LINEART, > SANE_VALUE_SCAN_MODE_GRAY, > SANE_VALUE_SCAN_MODE_COLOR, > NULL > }; > ----- > > But at function fix_window() we convert mode to code: > ----- > dev->composition = scan_mode_to_code[string_match_index(scan_modes, > dev->val[OPT_MODE].s)]; > ----- > > -- > WBR, bsam > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-request at lists.alioth.debian.org