mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-03 07:20:31 +02:00
gtk intf: TGtkWSCustomListView.ItemSetImage: gdk_pixbuf_render_pixmap_and_mask creates the pixmap and mask itself
git-svn-id: trunk@21786 -
This commit is contained in:
parent
f7a5ae1032
commit
7eb1c29d07
@ -689,8 +689,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
gbPixbuf:
|
gbPixbuf:
|
||||||
begin
|
begin
|
||||||
Pixmap := gdk_pixmap_new(nil, ImageBitmap.Width, ImageBitmap.Height, 24);
|
Pixmap := nil;
|
||||||
Mask := gdk_pixmap_new(nil, ImageBitmap.Width, ImageBitmap.Height, 1);
|
Mask := nil;
|
||||||
gdk_pixbuf_render_pixmap_and_mask(PGDIObject(ImageBitmap.Handle)^.GDIPixbufObject, pixmap, mask, $80);
|
gdk_pixbuf_render_pixmap_and_mask(PGDIObject(ImageBitmap.Handle)^.GDIPixbufObject, pixmap, mask, $80);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user