summaryrefslogtreecommitdiff
path: root/dmagick/c/draw.d
diff options
context:
space:
mode:
Diffstat (limited to 'dmagick/c/draw.d')
-rw-r--r--dmagick/c/draw.d33
1 files changed, 27 insertions, 6 deletions
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