diff dwt/graphics/Pattern.d @ 46:cfa563df4fdd

Updated Widget and Display to 3.514
author Jacob Carlborg <doob@me.com>
date Fri, 05 Dec 2008 16:00:41 +0100
parents d8635bb48c7c
children 62202ce0039f
line wrap: on
line diff
--- a/dwt/graphics/Pattern.d	Mon Dec 01 17:07:00 2008 +0100
+++ b/dwt/graphics/Pattern.d	Fri Dec 05 16:00:41 2008 +0100
@@ -31,7 +31,7 @@
 import dwt.graphics.GC;
 import dwt.graphics.Image;
 import dwt.graphics.Resource;
-import dwt.internal.cocoa.CGFloat;
+import dwt.internal.c.Carbon;
 
 /**
  * Instances of this class represent patterns to use while drawing. Patterns
@@ -92,7 +92,7 @@
     if (image is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     if (image.isDisposed()) DWT.error(DWT.ERROR_INVALID_ARGUMENT);
     NSAutoreleasePool pool = null;
-    if (!NSThread.isMainThread()) pool = (NSAutoreleasePool) new NSAutoreleasePool().alloc().init();
+    if (!NSThread.isMainThread()) pool = cast(NSAutoreleasePool) (new NSAutoreleasePool()).alloc().init();
     try {
         this.image = image;
         color = NSColor.colorWithPatternImage(image.handle);