Skip to content

Commit

Permalink
Define BlurCompositeOp.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmagick committed Jun 19, 2009
1 parent eafea8a commit 889253c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ext/RMagick/extconf.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ def check_multiple_imagemagick_versions()


have_enum_values("AlphaChannelType", ["CopyAlphaChannel", # 6.4.3-7 have_enum_values("AlphaChannelType", ["CopyAlphaChannel", # 6.4.3-7
"BackgroundAlphaChannel"], headers) # 6.5.2-5 "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 have_enum_values("CompressionType", ["DXT1Compression", # 6.3.9-3
"DXT3Compression", # 6.3.9-3 "DXT3Compression", # 6.3.9-3
"DXT5Compression"], headers) # 6.3.9-3 "DXT5Compression"], headers) # 6.3.9-3
Expand Down
7 changes: 6 additions & 1 deletion ext/RMagick/rmdraw.c
Original file line number Original file line Diff line number Diff line change
@@ -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 | Copyright (C) 2009 by Timothy P. Hunter
| Name: rmdraw.c | Name: rmdraw.c
Expand Down Expand Up @@ -881,6 +881,11 @@ Draw_composite(int argc, VALUE *argv, VALUE self)
case BlendCompositeOp: case BlendCompositeOp:
op = "Blend"; op = "Blend";
break; break;
#if defined(HAVE_ENUM_BLURCOMPOSITEOP)
case BlurCompositeOp:
op = "Blur";
break;
#endif
case BumpmapCompositeOp: case BumpmapCompositeOp:
op = "Bumpmap"; op = "Bumpmap";
break; break;
Expand Down
5 changes: 4 additions & 1 deletion ext/RMagick/rmenum.c
Original file line number Original file line Diff line number Diff line change
@@ -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 | Copyright (C) 2009 by Timothy P. Hunter
| Name: rmenum.c | Name: rmenum.c
Expand Down Expand Up @@ -375,6 +375,9 @@ CompositeOperator_name(CompositeOperator op)
ENUM_TO_NAME(NoCompositeOp) ENUM_TO_NAME(NoCompositeOp)
ENUM_TO_NAME(AddCompositeOp) ENUM_TO_NAME(AddCompositeOp)
ENUM_TO_NAME(AtopCompositeOp) ENUM_TO_NAME(AtopCompositeOp)
#if defined(HAVE_ENUM_BLURCOMPOSITEOP)
ENUM_TO_NAME(BlurCompositeOp)
#endif
ENUM_TO_NAME(BumpmapCompositeOp) ENUM_TO_NAME(BumpmapCompositeOp)
ENUM_TO_NAME(ChangeMaskCompositeOp) ENUM_TO_NAME(ChangeMaskCompositeOp)
ENUM_TO_NAME(ClearCompositeOp) ENUM_TO_NAME(ClearCompositeOp)
Expand Down

0 comments on commit 889253c

Please sign in to comment.