Mercurial > projects > dwt-mac
diff dwt/graphics/Pattern.d @ 5:1a8b3cb347e0
Fix Ctors to 'this'
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:02:31 +0200 |
parents | 649b8e223d5a |
children | e831403a80a9 |
line wrap: on
line diff
--- a/dwt/graphics/Pattern.d Wed Aug 27 13:51:50 2008 +0200 +++ b/dwt/graphics/Pattern.d Wed Aug 27 14:02:31 2008 +0200 @@ -67,7 +67,7 @@ * * @see #dispose() */ -public Pattern(Device device, Image image) { +public this(Device device, Image image) { super(device); if (image is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (image.isDisposed()) DWT.error(DWT.ERROR_INVALID_ARGUMENT); @@ -109,7 +109,7 @@ * * @see #dispose() */ -public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, Color color2) { +public this(Device device, float x1, float y1, float x2, float y2, Color color1, Color color2) { this(device, x1, y1, x2, y2, color1, 0xFF, color2, 0xFF); } /** @@ -148,7 +148,7 @@ * * @since 3.2 */ -public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) { +public this(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) { super(device); if (color1 is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (color1.isDisposed()) DWT.error(DWT.ERROR_INVALID_ARGUMENT);