Skip to content

Commit

Permalink
revert optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Oct 24, 2021
1 parent 122366e commit 07c8384
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions coders/caption.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
return(DestroyImageList(image));
(void) SetImageProperty(image,"caption",caption);
draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL);
draw_info->render=MagickFalse;
width=(size_t) floor(draw_info->pointsize*strlen(caption)+0.5);
if (AcquireMagickResource(0.5*WidthResource,width) == MagickFalse)
{
Expand Down Expand Up @@ -311,7 +310,6 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
/*
Draw caption.
*/
draw_info->render=MagickTrue;
i=FormatMagickCaption(image,draw_info,split,&metrics,&caption);
AdjustTypeMetricBounds(&metrics);
(void) CloneString(&draw_info->text,caption);
Expand Down
2 changes: 0 additions & 2 deletions coders/label.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ static Image *ReadLABELImage(const ImageInfo *image_info,
return(DestroyImageList(image));
(void) SetImageProperty(image,"label",label);
draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL);
draw_info->render=MagickFalse;
width=(size_t) floor(0.5*draw_info->pointsize*strlen(label)+0.5);
if (AcquireMagickResource(WidthResource,width) == MagickFalse)
{
Expand Down Expand Up @@ -279,7 +278,6 @@ static Image *ReadLABELImage(const ImageInfo *image_info,
/*
Draw label.
*/
draw_info->render=MagickTrue;
(void) FormatLocaleString(geometry,MagickPathExtent,"%+g%+g",
(draw_info->direction == RightToLeftDirection ? (double) image->columns-
metrics.bounds.x2 : metrics.bounds.x1),(draw_info->gravity ==
Expand Down

0 comments on commit 07c8384

Please sign in to comment.