Update of /cvsroot/gaim/gaim/src
In directory usw-pr-cvs1:/tmp/cvs-serv13744
Modified Files:
applet.c
Log Message:
this is not necessary for the icons we use but if someone wants to use different icons it's a nice thing to do.
Index: applet.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/applet.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- applet.c 2001/10/12 18:24:46 1.18
+++ applet.c 2001/10/13 03:23:55 1.19
@@ -84,10 +84,16 @@
}
art_affine_identity(affine);
- art_rgb_rgba_affine(dst, 0, 0, sizehint, sizehint, sizehint * 3,
- gdk_pixbuf_get_pixels(pb),
- gdk_pixbuf_get_width(pb), gdk_pixbuf_get_height(pb),
- gdk_pixbuf_get_rowstride(pb), affine, ART_FILTER_NEAREST, NULL);
+ if (gdk_pixbuf_get_has_alpha(pb))
+ art_rgb_rgba_affine(dst, 0, 0, sizehint, sizehint, sizehint * 3,
+ gdk_pixbuf_get_pixels(pb), gdk_pixbuf_get_width(pb),
+ gdk_pixbuf_get_height(pb), gdk_pixbuf_get_rowstride(pb),
+ affine, ART_FILTER_NEAREST, NULL);
+ else
+ art_rgb_affine(dst, 0, 0, sizehint, sizehint, sizehint * 3,
+ gdk_pixbuf_get_pixels(pb), gdk_pixbuf_get_width(pb),
+ gdk_pixbuf_get_height(pb), gdk_pixbuf_get_rowstride(pb),
+ affine, ART_FILTER_NEAREST, NULL);
gdk_pixbuf_unref(pb);
gdk_draw_rgb_image(cache, gc, 0, 0, sizehint, sizehint,
|