Mercurial > dwindows
comparison gtk/dw.c @ 245:11baf43efbc2
Must call gdk_imlib_render() before gdk_imlib_copy_image().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 19 Feb 2003 08:00:50 +0000 |
parents | 68158098a092 |
children | bdaaa06285fd |
comparison
equal
deleted
inserted
replaced
244:68158098a092 | 245:11baf43efbc2 |
---|---|
5098 | 5098 |
5099 gdk_pixbuf_render_pixmap_and_mask(pixbuf, &pixmap->pixmap, &bitmap, 1); | 5099 gdk_pixbuf_render_pixmap_and_mask(pixbuf, &pixmap->pixmap, &bitmap, 1); |
5100 g_object_unref(pixbuf); | 5100 g_object_unref(pixbuf); |
5101 #elif defined(USE_IMLIB) | 5101 #elif defined(USE_IMLIB) |
5102 image = gdk_imlib_load_image(file); | 5102 image = gdk_imlib_load_image(file); |
5103 pixmap->pixmap = gdk_imlib_copy_image(image); | |
5104 | 5103 |
5105 pixmap->width = image->rgb_width; | 5104 pixmap->width = image->rgb_width; |
5106 pixmap->height = image->rgb_height; | 5105 pixmap->height = image->rgb_height; |
5107 | 5106 |
5107 gdk_imlib_render(image, pixmap->width, pixmap->height); | |
5108 pixmap->pixmap = gdk_imlib_copy_image(image); | |
5108 gdk_imlib_destroy_image(image); | 5109 gdk_imlib_destroy_image(image); |
5109 #else | 5110 #else |
5110 pixmap->pixmap = gdk_pixmap_create_from_xpm(handle->window, &bitmap, &_colors[DW_CLR_PALEGRAY], file); | 5111 pixmap->pixmap = gdk_pixmap_create_from_xpm(handle->window, &bitmap, &_colors[DW_CLR_PALEGRAY], file); |
5111 #endif | 5112 #endif |
5112 pixmap->handle = handle; | 5113 pixmap->handle = handle; |