summaryrefslogtreecommitdiff
path: root/dmagick/Image.d
diff options
context:
space:
mode:
authorMike Wey2012-01-02 16:55:11 +0100
committerMike Wey2012-01-02 16:55:11 +0100
commitc7acbf8a060f91d585c7a48d2562ebf7f9241f48 (patch)
tree48d03ebb194610137e79b694aaebf0458233b85b /dmagick/Image.d
parent210970a92f2b01ebc91ccee68493ed0733a2868d (diff)
parentc17126a686f8191b19ab8ed6be1b1f4117df3b30 (diff)
Merge branch 'WindowsDisplay'
Diffstat (limited to 'dmagick/Image.d')
-rw-r--r--dmagick/Image.d14
1 files changed, 12 insertions, 2 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d
index 86c2a5b..b68c220 100644
--- a/dmagick/Image.d
+++ b/dmagick/Image.d
@@ -25,6 +25,8 @@ import dmagick.ImageView;
import dmagick.Options;
import dmagick.Utils;
+version(Windows) import dmagick.internal.Windows;
+
//Import all translated c headers.
import dmagick.c.MagickCore;
@@ -1178,9 +1180,17 @@ class Image
*/
void display()
{
- DisplayImages(options.imageInfo, imageRef);
+ version(Windows)
+ {
+ Window win = new Window(this);
+ win.display();
+ }
+ else
+ {
+ DisplayImages(options.imageInfo, imageRef);
- DMagickException.throwException(&(imageRef.exception));
+ DMagickException.throwException(&(imageRef.exception));
+ }
}
/**