diff dwt/graphics/Cursor.d @ 33:27324bbbac70

changed to regenerated BCD bindings
author Frank Benoit <benoit@tionex.de>
date Thu, 10 Jan 2008 02:18:07 +0100
parents 55c4568a2bab
children 8cec8f536af3
line wrap: on
line diff
--- a/dwt/graphics/Cursor.d	Wed Jan 09 07:07:50 2008 +0100
+++ b/dwt/graphics/Cursor.d	Thu Jan 10 02:18:07 2008 +0100
@@ -19,7 +19,6 @@
 import dwt.graphics.PaletteData;
 
 import dwt.internal.gtk.OS;
-import dwt.internal.gtk.c.gdktypes;
 
 import tango.text.convert.Format;
 import tango.stdc.string;
@@ -165,7 +164,7 @@
 	if (shape == 0 && style == SWT.CURSOR_APPSTARTING) {
 		handle = createCursor(APPSTARTING_SRC, APPSTARTING_MASK, 32, 32, 2, 2, true);
 	} else {
-		handle = OS.gdk_cursor_new(cast(GdkCursorType)shape);
+		handle = OS.gdk_cursor_new(shape);
 	}
 	if (handle is null) SWT.error(SWT.ERROR_NO_HANDLES);
 	if (device.tracking) device.new_Object(this);
@@ -301,7 +300,7 @@
 		int width = source.width;
 		int height = source.height;
 		PaletteData palette = source.palette;
-		auto pixbuf = OS.gdk_pixbuf_new(cast(GdkColorspace)OS.GDK_COLORSPACE_RGB, true, 8, width, height);
+		auto pixbuf = OS.gdk_pixbuf_new(OS.GDK_COLORSPACE_RGB, true, 8, width, height);
 		if (pixbuf is null) SWT.error(SWT.ERROR_NO_HANDLES);
 		int stride = OS.gdk_pixbuf_get_rowstride(pixbuf);
 		auto data = OS.gdk_pixbuf_get_pixels(pixbuf);