diff dwt/graphics/Pattern.d @ 36:db5a898b2119

Fixed a lot of compile errors
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 07 Oct 2008 12:56:18 +0200
parents 93b13b15f0b1
children d8635bb48c7c
line wrap: on
line diff
--- a/dwt/graphics/Pattern.d	Sun Sep 14 23:32:29 2008 +0200
+++ b/dwt/graphics/Pattern.d	Tue Oct 07 12:56:18 2008 +0200
@@ -47,6 +47,8 @@
  * @since 3.1
  */
 public class Pattern : Resource {
+    alias Resource.init_ init_;
+    
     NSColor color;
     NSGradient gradient;
     NSPoint pt1, pt2;
@@ -86,7 +88,7 @@
     this.image = image;
     color = NSColor.colorWithPatternImage(image.handle);
     color.retain();
-    init();
+    init_();
 }
 
 /**
@@ -179,7 +181,7 @@
     NSColor start = NSColor.colorWithDeviceRed(cast(CGFloat) color1.handle[0], cast(CGFloat) color1.handle[1], cast(CGFloat) color1.handle[2], cast(CGFloat) (alpha1 / 255f));
     NSColor end = NSColor.colorWithDeviceRed(cast(CGFloat) color2.handle[0], cast(CGFloat) color2.handle[1], cast(CGFloat) color2.handle[2], cast(CGFloat) (alpha2 / 255f));
     gradient = (cast(NSGradient)(new NSGradient()).alloc()).initWithStartingColor(start, end);
-    init();
+    init_();
 }
 
 void destroy() {