comparison dwt/graphics/Image.d @ 28:10acbb123580

Widget and TypedListener
author Frank Benoit <benoit@tionex.de>
date Wed, 09 Jan 2008 02:59:32 +0100
parents fc2b263b8a3f
children 27324bbbac70
comparison
equal deleted inserted replaced
27:ffa3c27c4328 28:10acbb123580
756 } else { 756 } else {
757 auto xDisplay = OS.GDK_DISPLAY(); 757 auto xDisplay = OS.GDK_DISPLAY();
758 auto xDrawable = OS.GDK_PIXMAP_XID(pixmap); 758 auto xDrawable = OS.GDK_PIXMAP_XID(pixmap);
759 auto xVisual = OS.gdk_x11_visual_get_xvisual(OS.gdk_visual_get_system()); 759 auto xVisual = OS.gdk_x11_visual_get_xvisual(OS.gdk_visual_get_system());
760 // PORTING_FIXME cast and types not good 760 // PORTING_FIXME cast and types not good
761 surface = Cairo.cairo_xlib_surface_create(cast(dwt.internal.gtk.c.cairotypes.Display*)xDisplay, xDrawable, xVisual, width, height); 761 surface = Cairo.cairo_xlib_surface_create(cast(void*)xDisplay, xDrawable, xVisual, width, height);
762 } 762 }
763 /* Destroy the image mask if the there is a GC created on the image */ 763 /* Destroy the image mask if the there is a GC created on the image */
764 if (transparentPixel != -1 && memGC != null) destroyMask(); 764 if (transparentPixel != -1 && memGC != null) destroyMask();
765 } 765 }
766 766