# HG changeset patch # User Eric Warmenhoven # Date 1002943435 0 # Node ID be88e02789e02d1b39127d631cedfc346fe93b8d # Parent f0a2a9afdb77e55a4ccedf3cd5d0137475f29569 [gaim-migrate @ 2510] this is not necessary for the icons we use but if someone wants to use different icons it's a nice thing to do. committer: Tailor Script diff -r f0a2a9afdb77 -r be88e02789e0 src/applet.c --- a/src/applet.c Sat Oct 13 00:06:18 2001 +0000 +++ b/src/applet.c Sat Oct 13 03:23:55 2001 +0000 @@ -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,