pkgsrc/graphics/pixieplus/patches/patch-ad
joerg 0401f1311e Remove a number of spurious semicolons, rename a variable shadowing
itself and fix include of fnmatch.h, which can be obtained from
Heimdal. The latter can go away after the branch, when Heimdal itself
is fixed.
2006-06-21 21:00:49 +00:00

43 lines
1.5 KiB
Text

$NetBSD: patch-ad,v 1.2 2006/06/21 21:00:49 joerg Exp $
--- app/batch.cpp.orig 2003-02-09 04:56:49.000000000 +0000
+++ app/batch.cpp
@@ -196,7 +196,7 @@ frequency of the sine wave."), this);
connect(bbox->addButton(i18n("Cancel")), SIGNAL(clicked()), this,
SLOT(reject()));
layout->addWidget(bbox);
-};
+}
KIFShadeDialog::KIFShadeDialog(QWidget *parent, const char *name)
: QDialog(parent, name, true)
@@ -228,7 +228,7 @@ KIFShadeDialog::KIFShadeDialog(QWidget *
connect(bbox->addButton(i18n("Cancel")), SIGNAL(clicked()), this,
SLOT(reject()));
layout->addWidget(bbox);
-};
+}
KIFTextDialog::KIFTextDialog(QWidget *parent, const char *name)
: QDialog(parent, name, true)
@@ -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);