Mercurial > dwindows
changeset 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 |
files | gtk/dw.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk/dw.c Wed Feb 19 07:41:50 2003 +0000 +++ b/gtk/dw.c Wed Feb 19 08:00:50 2003 +0000 @@ -5100,11 +5100,12 @@ g_object_unref(pixbuf); #elif defined(USE_IMLIB) image = gdk_imlib_load_image(file); - pixmap->pixmap = gdk_imlib_copy_image(image); pixmap->width = image->rgb_width; pixmap->height = image->rgb_height; + gdk_imlib_render(image, pixmap->width, pixmap->height); + pixmap->pixmap = gdk_imlib_copy_image(image); gdk_imlib_destroy_image(image); #else pixmap->pixmap = gdk_pixmap_create_from_xpm(handle->window, &bitmap, &_colors[DW_CLR_PALEGRAY], file);