]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 9 Jul 2011 16:04:35 +0000 (16:04 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 9 Jul 2011 16:04:35 +0000 (16:04 +0000)
MagickCore/draw.c

index 2f73d0e1162d7d80e01ae09aa4df9a9ca1be5896..4f02ad50e2f76862c8fd472753adc5bfcb7fad55 100644 (file)
@@ -2002,8 +2002,8 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info)
             GetMagickToken(q,&q,token);
             factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0;
             graphic_context[n]->fill.alpha=ClampToQuantum((MagickRealType)
-              QuantumRange*(1.0-factor*InterpretLocaleValue(token,
-              (char **) NULL)));
+              QuantumRange*factor*InterpretLocaleValue(token,
+              (char **) NULL));
             break;
           }
         if (LocaleCompare("fill-rule",keyword) == 0)
@@ -2629,8 +2629,8 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info)
             GetMagickToken(q,&q,token);
             factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0;
             graphic_context[n]->stroke.alpha=ClampToQuantum((MagickRealType)
-              QuantumRange*(1.0-factor*InterpretLocaleValue(token,
-              (char **) NULL)));
+              QuantumRange*factor*InterpretLocaleValue(token,
+              (char **) NULL));
             break;
           }
         if (LocaleCompare("stroke-width",keyword) == 0)