From 6d73c6648da1953a5db37e7b538e44549f0e76e7 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 12 Feb 2018 19:33:25 -0500 Subject: [PATCH] ... --- MagickCore/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 6f6f6860b..eac32d9ff 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -2052,7 +2052,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info, { GetNextToken(q,&q,extent,token); factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0; - graphic_context[n]->fill.alpha=(MagickRealType) (QuantumRange- + graphic_context[n]->fill_alpha=(MagickRealType) (QuantumRange- ClampToQuantum((MagickRealType) QuantumRange*(1.0-factor* StringToDouble(token,&next_token)))); if (token == next_token) @@ -2732,7 +2732,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info, { GetNextToken(q,&q,extent,token); factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0; - graphic_context[n]->stroke.alpha=(MagickRealType) (QuantumRange- + graphic_context[n]->stroke_alpha=(MagickRealType) (QuantumRange- ClampToQuantum((MagickRealType) QuantumRange*(1.0-factor* StringToDouble(token,&next_token)))); if (token == next_token) -- 2.40.0