Mercurial > dwindows
comparison gtk/dw.c @ 259:22a215209887
Also get the mask from imlib.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 20 Feb 2003 23:43:44 +0000 |
parents | b2c436c84e5d |
children | 20becf7df38a |
comparison
equal
deleted
inserted
replaced
258:b2c436c84e5d | 259:22a215209887 |
---|---|
4216 _PixmapArray[found].width = image->rgb_width; | 4216 _PixmapArray[found].width = image->rgb_width; |
4217 _PixmapArray[found].height = image->rgb_height; | 4217 _PixmapArray[found].height = image->rgb_height; |
4218 | 4218 |
4219 gdk_imlib_render(image, image->rgb_width, image->rgb_height); | 4219 gdk_imlib_render(image, image->rgb_width, image->rgb_height); |
4220 _PixmapArray[found].pixmap = gdk_imlib_copy_image(image); | 4220 _PixmapArray[found].pixmap = gdk_imlib_copy_image(image); |
4221 _PixmapArray[found].mask = gdk_imlib_copy_mask(image); | |
4221 gdk_imlib_destroy_image(image); | 4222 gdk_imlib_destroy_image(image); |
4222 #else | 4223 #else |
4223 _PixmapArray[found].pixmap = gdk_pixmap_create_from_xpm(handle->window, &_PixmapArray[found].mask, &_colors[DW_CLR_PALEGRAY], file); | 4224 _PixmapArray[found].pixmap = gdk_pixmap_create_from_xpm(handle->window, &_PixmapArray[found].mask, &_colors[DW_CLR_PALEGRAY], file); |
4224 #endif | 4225 #endif |
4225 DW_MUTEX_UNLOCK; | 4226 DW_MUTEX_UNLOCK; |