Permalink
Browse files

Define BlurCompositeOp.

  • Loading branch information...
1 parent eafea8a commit 889253c68226075fde27d6887e12303b0201b198 rmagick committed Jun 19, 2009
Showing with 12 additions and 3 deletions.
  1. +2 −1 ext/RMagick/extconf.rb
  2. +6 −1 ext/RMagick/rmdraw.c
  3. +4 −1 ext/RMagick/rmenum.c
View
@@ -258,7 +258,8 @@ def check_multiple_imagemagick_versions()
have_enum_values("AlphaChannelType", ["CopyAlphaChannel", # 6.4.3-7
"BackgroundAlphaChannel"], headers) # 6.5.2-5
-have_enum_value("CompositeOperator", "DistortCompositeOp", headers) # 6.5.3-7
+have_enum_values("CompositeOperator", ["BlurCompositeOp", # 6.5.3-7
+ "DistortCompositeOp"], headers) # 6.5.3-10
have_enum_values("CompressionType", ["DXT1Compression", # 6.3.9-3
"DXT3Compression", # 6.3.9-3
"DXT5Compression"], headers) # 6.3.9-3
View
@@ -1,4 +1,4 @@
-/* $Id: rmdraw.c,v 1.79 2009/06/16 23:09:27 rmagick Exp $ */
+/* $Id: rmdraw.c,v 1.80 2009/06/19 22:07:40 rmagick Exp $ */
/*============================================================================\
| Copyright (C) 2009 by Timothy P. Hunter
| Name: rmdraw.c
@@ -881,6 +881,11 @@ Draw_composite(int argc, VALUE *argv, VALUE self)
case BlendCompositeOp:
op = "Blend";
break;
+#if defined(HAVE_ENUM_BLURCOMPOSITEOP)
+ case BlurCompositeOp:
+ op = "Blur";
+ break;
+#endif
case BumpmapCompositeOp:
op = "Bumpmap";
break;
View
@@ -1,4 +1,4 @@
-/* $Id: rmenum.c,v 1.5 2009/06/16 23:09:27 rmagick Exp $ */
+/* $Id: rmenum.c,v 1.6 2009/06/19 22:07:40 rmagick Exp $ */
/*============================================================================\
| Copyright (C) 2009 by Timothy P. Hunter
| Name: rmenum.c
@@ -375,6 +375,9 @@ CompositeOperator_name(CompositeOperator op)
ENUM_TO_NAME(NoCompositeOp)
ENUM_TO_NAME(AddCompositeOp)
ENUM_TO_NAME(AtopCompositeOp)
+#if defined(HAVE_ENUM_BLURCOMPOSITEOP)
+ ENUM_TO_NAME(BlurCompositeOp)
+#endif
ENUM_TO_NAME(BumpmapCompositeOp)
ENUM_TO_NAME(ChangeMaskCompositeOp)
ENUM_TO_NAME(ClearCompositeOp)

0 comments on commit 889253c

Please sign in to comment.