hp3500.c: Remove interdependency between contrast and brightness

merge-requests/1/head
Troy Rollo 2011-03-13 10:07:33 +11:00
rodzic 22c7800b8d
commit 91ea92686d
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
2011-03-12 Troy Rollo <sane@troy.rollo.name>
* backend/hp3500.c: Remove interdependency between contrast and
brightness.
2011-03-12 Julien Blache <jb@jblache.org>
* doc/scanimage.man: batch-start defaults to 1 if not specified,
not 0. Reported by Jakub Wilk <jwilk@debian.org>.

Wyświetl plik

@ -3349,7 +3349,7 @@ rts8801_scan (unsigned x,
double contrast_adjust = (double) (contrast + 1) / 64;
multnow = f * 64 * contrast_adjust;
offnow = 4 * g - brightness - 64.0l * (1.0l - contrast_adjust);
offnow = 4 * g + 128 - brightness;
}
if (multnow < 0)
multnow = 0;