From 1b95c603a592deb7cef49e9787ede824b94444e0 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Wed, 19 Oct 2011 23:30:50 +0200 Subject: Add support for imageMagick 6.6.1 to the headers. --- dmagick/c/draw.d | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'dmagick/c/draw.d') diff --git a/dmagick/c/draw.d b/dmagick/c/draw.d index df9deac..f1b7d63 100644 --- a/dmagick/c/draw.d +++ b/dmagick/c/draw.d @@ -4,6 +4,7 @@ import dmagick.c.composite; import dmagick.c.geometry; import dmagick.c.image; import dmagick.c.magickType; +import dmagick.c.magickVersion; import dmagick.c.pixel; import dmagick.c.type; @@ -34,11 +35,23 @@ extern(C) LineThroughDecoration } - enum DirectionType + static if (MagickLibVersion >= 0x662) { - UndefinedDirection, - RightToLeftDirection, - LeftToRightDirection + enum DirectionType + { + UndefinedDirection, + RightToLeftDirection, + LeftToRightDirection + } + } + else + { + enum DirectionType + { + UndefinedDirection, + LeftToRightDirection, + RightToLeftDirection + } } enum FillRule @@ -310,8 +323,16 @@ extern(C) interword_spacing, interline_spacing; - DirectionType - direction; + static if (MagickLibVersion >= 0x662) + { + DirectionType + direction; + } + else + { + double + direction; + } } struct PrimitiveInfo -- cgit v1.2.3