gtk intf: gdk_pixbuf_render_pixmap_and_mask creates the pixmap and mask itself

git-svn-id: trunk@21783 -
This commit is contained in:
mattias 2009-09-20 22:10:20 +00:00
parent ac7c91e727
commit d77de397b1

View File

@ -726,13 +726,8 @@ begin
gbBitmap: NewDrawable := GDIBitmapObject;
gbPixbuf:
begin
NewDrawable := gdk_pixmap_new(nil,
gdk_pixbuf_get_width(GDIPixbufObject),
gdk_pixbuf_get_height(GDIPixbufObject),
gdk_pixbuf_get_n_channels(GDIPixbufObject) * gdk_pixbuf_get_bits_per_sample(GDIPixbufObject));
Mask := gdk_pixmap_new(nil,
gdk_pixbuf_get_width(GDIPixbufObject),
gdk_pixbuf_get_height(GDIPixbufObject), 1);
NewDrawable := nil;
Mask := nil;
gdk_pixbuf_render_pixmap_and_mask(GDIPixbufObject, NewDrawable, Mask, $80);
GDIBitmapType := gbPixmap;
gdk_pixbuf_unref(GDIPixbufObject);