From 60502fe47b1c4f3f8d53ba96b73670edab343e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Voltz?= Date: Mon, 12 Nov 2001 05:52:00 +0000 Subject: [PATCH] - removed buggy extra ifdef, this should fix PPC compil problem --- backend/umax_pp_low.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/umax_pp_low.c b/backend/umax_pp_low.c index 0a406f1c9..b34db1bfa 100644 --- a/backend/umax_pp_low.c +++ b/backend/umax_pp_low.c @@ -58,7 +58,7 @@ #include #endif -#if defined HAVE_SYS_IO_H && defined HAVE_IOPERM +#ifdef HAVE_SYS_IO_H # include /* GNU libc based Linux */ #elif HAVE_ASM_IO_H # include /* older Linux */ @@ -7494,6 +7494,7 @@ sanei_umax_pp_StartScan (int x, int y, int width, int height, int dpi, } /* init some buffer : default calibration data ? */ + /* looks like a standard gamma table */ dest[0] = 0x00; dest[1] = 0x00; dest[2] = 0x00; @@ -7552,7 +7553,7 @@ sanei_umax_pp_StartScan (int x, int y, int width, int height, int dpi, for (i = 0; i < 256; i++) { if ((dest[2 * i] != i) - || ((dest[2 * i + 1] != 0x04) && (dest[2 * i + 1] != 0x00))) + || ((dest[2 * i + 1] != 0xFF) && (dest[2 * i + 1] != 0x00))) { DBG (0,