From f7a5ae10325cf6602dc4a73fa72f10b9b44fcc48 Mon Sep 17 00:00:00 2001 From: mattias Date: Sun, 20 Sep 2009 22:14:29 +0000 Subject: [PATCH] gtk intf: TGtkWSCustomListView.ItemChangeInternal: gdk_pixbuf_render_pixmap_and_mask creates the pixmap and mask itself git-svn-id: trunk@21785 - --- lcl/interfaces/gtk/gtkwscustomlistview.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcl/interfaces/gtk/gtkwscustomlistview.inc b/lcl/interfaces/gtk/gtkwscustomlistview.inc index 10c561628a..d1bcb45e96 100644 --- a/lcl/interfaces/gtk/gtkwscustomlistview.inc +++ b/lcl/interfaces/gtk/gtkwscustomlistview.inc @@ -525,8 +525,8 @@ begin end; gbPixbuf: begin - Pixmap := gdk_pixmap_new(nil, ImageBitmap.Width, ImageBitmap.Height, 24); - Mask := gdk_pixmap_new(nil, ImageBitmap.Width, ImageBitmap.Height, 1); + Pixmap := nil; + Mask := nil; gdk_pixbuf_render_pixmap_and_mask(GDIObject^.GDIPixbufObject, Pixmap, Mask, $80); end; end;