diff options
| author | Mike Wey | 2013-10-12 13:46:26 +0200 |
|---|---|---|
| committer | Mike Wey | 2013-10-12 13:46:26 +0200 |
| commit | 5556e6ae0d2241dcaa8bd5031f343643d488eb66 (patch) | |
| tree | 75542122a3468127a8351586d4273f7db8c2705f /dmagick | |
| parent | 0f6b40f6ec5e5973bae3a2375ff09d58d7b9510e (diff) | |
Fix the Enums to work with dmd 2.064.
DMagick will still fail at runtime because of DRuntime bug #11149.
Diffstat (limited to 'dmagick')
| -rw-r--r-- | dmagick/c/distort.d | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dmagick/c/distort.d b/dmagick/c/distort.d index 601d0c5..0ad37bd 100644 --- a/dmagick/c/distort.d +++ b/dmagick/c/distort.d @@ -284,35 +284,35 @@ extern(C) enum SparseColorMethod { /** */ - UndefinedColorInterpolate = DistortImageMethod.UndefinedDistortion, + UndefinedColorInterpolate = cast(int)DistortImageMethod.UndefinedDistortion, /** * three point triangle of color given 3 points. Giving only 2 points * will form a linear gradient between those points. The gradient * generated extends beyond the triangle created by those 3 points. */ - BarycentricColorInterpolate = DistortImageMethod.AffineDistortion, + BarycentricColorInterpolate = cast(int)DistortImageMethod.AffineDistortion, /** * Like barycentric but for 4 points. Less than 4 points fall back * to barycentric. */ - BilinearColorInterpolate = DistortImageMethod.BilinearReverseDistortion, + BilinearColorInterpolate = cast(int)DistortImageMethod.BilinearReverseDistortion, /** */ - PolynomialColorInterpolate = DistortImageMethod.PolynomialDistortion, + PolynomialColorInterpolate = cast(int)DistortImageMethod.PolynomialDistortion, /** * Colors points biased on the ratio of inverse distance squared. * Generating spots of color in a sea of the average of colors. */ - ShepardsColorInterpolate = DistortImageMethod.ShepardsDistortion, + ShepardsColorInterpolate = cast(int)DistortImageMethod.ShepardsDistortion, /** * Simply map each pixel to the to nearest color point given. * The result are polygonal cells of solid color. */ - VoronoiColorInterpolate = DistortImageMethod.SentinelDistortion, + VoronoiColorInterpolate = cast(int)DistortImageMethod.SentinelDistortion, /** * Colors points biased on the ratio of inverse distance. |
