From: cristy Date: Sat, 9 Jul 2011 16:04:35 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7324 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b5421762851bf1649cefc8f5afc4e684f6b68a2;p=imagemagick --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 2f73d0e11..4f02ad50e 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -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)