1 |
phosphan 10/09/01 21:21:56 |
2 |
|
3 |
Added: xerox-grey.patch |
4 |
Log: |
5 |
Little fix for missing colors when using xerox_mfp, bug #332667. |
6 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 media-gfx/sane-backends/files/xerox-grey.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/sane-backends/files/xerox-grey.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/sane-backends/files/xerox-grey.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: xerox-grey.patch |
15 |
=================================================================== |
16 |
diff --git a/backend/xerox_mfp.c b/backend/xerox_mfp.c |
17 |
index cda6e82..ab0f773 100644 |
18 |
--- a/backend/xerox_mfp.c |
19 |
+++ b/backend/xerox_mfp.c |
20 |
@@ -386,6 +386,7 @@ static int doc_source_to_code[] = { |
21 |
|
22 |
static SANE_String_Const scan_modes[] = { |
23 |
SANE_VALUE_SCAN_MODE_LINEART, |
24 |
+ SANE_VALUE_SCAN_MODE_HALFTONE, |
25 |
SANE_VALUE_SCAN_MODE_GRAY, |
26 |
SANE_VALUE_SCAN_MODE_COLOR, |
27 |
NULL |
28 |
@@ -940,8 +941,8 @@ SANE_Status |
29 |
sane_init (SANE_Int * version_code, SANE_Auth_Callback cb) |
30 |
{ |
31 |
DBG_INIT (); |
32 |
- DBG (2, "sane_init: Xerox backend (build %d) %p, %p\n", BACKEND_BUILD, |
33 |
- (void *)version_code, (void *)cb); |
34 |
+ DBG (2, "sane_init: Xerox backend (build %d), version %s null, authorize %s null\n", BACKEND_BUILD, |
35 |
+ (version_code) ? "!=" : "==", (cb) ? "!=" : "=="); |
36 |
|
37 |
if (version_code) |
38 |
*version_code = SANE_VERSION_CODE (V_MAJOR, V_MINOR, BACKEND_BUILD); |