From: dirk Date: Sat, 14 Feb 2015 16:36:16 +0000 (+0000) Subject: Improved check of option. X-Git-Tag: 7.0.1-0~1287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf97f6100e599b488fbe34390263c9688deebb54;p=imagemagick Improved check of option. --- diff --git a/coders/dds.c b/coders/dds.c index 7b3382c5b..ae46aea66 100644 --- a/coders/dds.c +++ b/coders/dds.c @@ -2638,13 +2638,13 @@ static MagickBooleanType WriteDDSImage(const ImageInfo *image_info, if (pixelFormat == DDPF_FOURCC) { option=GetImageOption(image_info,"dds:cluster-fit"); - if (option != (char *) NULL && LocaleCompare(option,"true") == 0) + if (IsStringTrue(option) != MagickFalse) { clusterFit=MagickTrue; if (compression != FOURCC_DXT1) { option=GetImageOption(image_info,"dds:weight-by-alpha"); - if (option != (char *) NULL && LocaleCompare(option,"true") == 0) + if (IsStringTrue(option) != MagickFalse) weightByAlpha=MagickTrue; } }