]> granicus.if.org Git - imagemagick/commitdiff
Rename 'DrawAllocateWand' method to 'AcquireDrawingWand'
authorCristy <urban-warrior@imagemagick.org>
Fri, 25 Dec 2015 13:15:09 +0000 (08:15 -0500)
committerCristy <urban-warrior@imagemagick.org>
Fri, 25 Dec 2015 13:15:09 +0000 (08:15 -0500)
MagickWand/drawing-wand.c
MagickWand/drawing-wand.h
coders/wmf.c

index da3b370f3a5ac53b174f4646a6b89bdca87b3c3f..ca6a1dfdcb338ca74e1939e5e648958e1ce1adb1 100644 (file)
@@ -349,6 +349,52 @@ static void AdjustAffine(DrawingWand *wand,const AffineMatrix *affine)
 %                                                                             %
 %                                                                             %
 %                                                                             %
++   A c q u i r e D r a w i n g W a n d                                       %
+%                                                                             %
+%                                                                             %
+%                                                                             %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%  AcquireDrawingWand() allocates an initial drawing wand which is an opaque
+%  handle required by the remaining drawing methods.
+%
+%  The format of the AcquireDrawingWand method is:
+%
+%      DrawingWand AcquireDrawingWand(const DrawInfo *draw_info,Image *image)
+%
+%  A description of each parameter follows:
+%
+%    o draw_info: Initial drawing defaults. Set to NULL to use defaults.
+%
+%    o image: the image to draw on.
+%
+*/
+WandExport DrawingWand *AcquireDrawingWand(const DrawInfo *draw_info,
+  Image *image)
+{
+  DrawingWand
+    *wand;
+
+  wand=NewDrawingWand();
+  if (draw_info != (const DrawInfo *) NULL)
+    {
+      CurrentContext=DestroyDrawInfo(CurrentContext);
+      CurrentContext=CloneDrawInfo((ImageInfo *) NULL,draw_info);
+    }
+  if (image != (Image *) NULL)
+    {
+      wand->image=DestroyImage(wand->image);
+      wand->destroy=MagickFalse;
+    }
+  wand->image=image;
+  return(wand);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                                                             %
+%                                                                             %
+%                                                                             %
 %   C l e a r D r a w i n g W a n d                                           %
 %                                                                             %
 %                                                                             %
@@ -581,51 +627,6 @@ WandExport void DrawAffine(DrawingWand *wand,const AffineMatrix *affine)
 %                                                                             %
 %                                                                             %
 %                                                                             %
-+   D r a w A l l o c a t e W a n d                                           %
-%                                                                             %
-%                                                                             %
-%                                                                             %
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
-%  DrawAllocateWand() allocates an initial drawing wand which is an opaque
-%  handle required by the remaining drawing methods.
-%
-%  The format of the DrawAllocateWand method is:
-%
-%      DrawingWand DrawAllocateWand(const DrawInfo *draw_info,Image *image)
-%
-%  A description of each parameter follows:
-%
-%    o draw_info: Initial drawing defaults. Set to NULL to use defaults.
-%
-%    o image: the image to draw on.
-%
-*/
-WandExport DrawingWand *DrawAllocateWand(const DrawInfo *draw_info,Image *image)
-{
-  DrawingWand
-    *wand;
-
-  wand=NewDrawingWand();
-  if (draw_info != (const DrawInfo *) NULL)
-    {
-      CurrentContext=DestroyDrawInfo(CurrentContext);
-      CurrentContext=CloneDrawInfo((ImageInfo *) NULL,draw_info);
-    }
-  if (image != (Image *) NULL)
-    {
-      wand->image=DestroyImage(wand->image);
-      wand->destroy=MagickFalse;
-    }
-  wand->image=image;
-  return(wand);
-}
-\f
-/*
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%                                                                             %
-%                                                                             %
-%                                                                             %
 %   D r a w A l p h a                                                         %
 %                                                                             %
 %                                                                             %
index 9bd2c7ef43289cf6757b9d284535dd9ece5ff0d7..7fd8ac6172853ed2452a27163f771fcb733b6502 100644 (file)
@@ -64,9 +64,9 @@ extern WandExport DrawInfo
   *PeekDrawingWand(const DrawingWand *);
 
 extern WandExport DrawingWand
+  *AcquireDrawingWand(const DrawInfo *,Image *),
   *CloneDrawingWand(const DrawingWand *),
   *DestroyDrawingWand(DrawingWand *),
-  *DrawAllocateWand(const DrawInfo *,Image *),
   *NewDrawingWand(void);
 
 extern WandExport ExceptionInfo
index e5f964ae50ac1465b44fbd9b90391ca311c4ba9c..77ce331ef6b75a50b6ffeae9377f2d21275f8c3b 100644 (file)
@@ -797,7 +797,7 @@ static void ipa_device_open(wmfAPI * API)
 
   ddata->push_depth = 0;
 
-  ddata->draw_wand = DrawAllocateWand(ddata->draw_info,ddata->image);
+  ddata->draw_wand = AcquireDrawingWand(ddata->draw_info,ddata->image);
 }
 
 /*