Mercurial > dwindows
comparison gtk/dw.c @ 282:916045924784
Fixed the mask in dw_window_set_bitmap() when using imlib.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 17 Mar 2003 14:45:08 +0000 |
parents | 984db8aefd7f |
children | 54aafc134652 |
comparison
equal
deleted
inserted
replaced
281:2f038ef90a36 | 282:916045924784 |
---|---|
2641 #elif defined(USE_IMLIB) | 2641 #elif defined(USE_IMLIB) |
2642 image = gdk_imlib_load_image(file); | 2642 image = gdk_imlib_load_image(file); |
2643 | 2643 |
2644 gdk_imlib_render(image, image->rgb_width, image->rgb_height); | 2644 gdk_imlib_render(image, image->rgb_width, image->rgb_height); |
2645 tmp = gdk_imlib_copy_image(image); | 2645 tmp = gdk_imlib_copy_image(image); |
2646 bitmap = gdk_imlib_copy_mask(image); | |
2646 gdk_imlib_destroy_image(image); | 2647 gdk_imlib_destroy_image(image); |
2647 #else | 2648 #else |
2648 tmp = gdk_pixmap_create_from_xpm(handle->window, &bitmap, &_colors[DW_CLR_PALEGRAY], file); | 2649 tmp = gdk_pixmap_create_from_xpm(handle->window, &bitmap, &_colors[DW_CLR_PALEGRAY], file); |
2649 #endif | 2650 #endif |
2650 } | 2651 } |