]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/draw-private.h
(no commit message)
[imagemagick] / MagickCore / draw-private.h
index def387d4c515cb266a3fb13954266486b55fc68c..79b6c83381a1156c557b5fc6ab6b31752beb9f49 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
+  Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
   dedicated to making software imaging solutions freely available.
   
   You may not use this file except in compliance with the License.
@@ -42,11 +42,8 @@ static inline MagickBooleanType GetFillColor(const DrawInfo *draw_info,
       status;
 
     pattern=draw_info->fill_pattern;
-#if defined(MAGICKCORE_OPENMP_SUPPORT) && (_OPENMP >= 200203)
-    #pragma omp critical
-#endif
-    status=GetOneVirtualMagickPixel(pattern,x+pattern->tile_offset.x,
-      y+pattern->tile_offset.y,fill,exception);
+    status=GetOneVirtualPixelInfo(pattern,TileVirtualPixelMethod,x+
+      pattern->tile_offset.x,y+pattern->tile_offset.y,fill,exception);
     return(status);
   }
 }
@@ -67,11 +64,8 @@ static inline MagickBooleanType GetStrokeColor(const DrawInfo *draw_info,
       status;
 
     pattern=draw_info->stroke_pattern;
-#if defined(MAGICKCORE_OPENMP_SUPPORT) && (_OPENMP >= 200203)
-  #pragma omp critical
-#endif
-    status=GetOneVirtualMagickPixel(pattern,x+pattern->tile_offset.x,y+
-      pattern->tile_offset.y,stroke,exception);
+    status=GetOneVirtualPixelInfo(pattern,TileVirtualPixelMethod,x+
+      pattern->tile_offset.x,y+pattern->tile_offset.y,stroke,exception);
     return(status);
   }
 }