1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-ad,v 1.1 2004/09/11 12:11:53 markd Exp $
--- app/batch.cpp.orig 2004-09-11 23:18:29.000000000 +1200
+++ app/batch.cpp
@@ -618,9 +618,9 @@ bool BatchEffect::applyMagickEffect(cons
else if(type == Equalize)
EqualizeImage(img);
else if(type == IncContrast)
- ContrastImage(img, true);
+ ContrastImage(img, MagickTrue);
else if(type == DecContrast)
- ContrastImage(img, false);
+ ContrastImage(img, MagickFalse);
else if(type == Solarize)
SolarizeImage(img, weight);
else if(type == Threshold)
@@ -752,7 +752,7 @@ bool BatchEffect::applyMagickEffect(cons
save = false;
}
else if(type == Shade){
- Image *tmp = ShadeImage(img, useColor, a, e, &exception);
+ Image *tmp = ShadeImage(img, useColor ? MagickTrue : MagickFalse, a, e, &exception);
if(tmp){
if(img->next)
DestroyImageList(img);
|