# # old_revision [4ab9e90098e6da258249fec923aa7730329a2cf3] # # patch "pidgin/gtkutils.c" # from [a61e852af45ed855067469387febd826de689268] # to [edc23df505080be7b56606417d8af43886c08303] # ============================================================ --- pidgin/gtkutils.c a61e852af45ed855067469387febd826de689268 +++ pidgin/gtkutils.c edc23df505080be7b56606417d8af43886c08303 @@ -3040,9 +3040,6 @@ gboolean pidgin_gdk_pixbuf_is_opaque(Gdk unsigned char *pixels; unsigned char *row; - if (!gdk_pixbuf_get_has_alpha(pixbuf)) - return TRUE; - width = gdk_pixbuf_get_width (pixbuf); height = gdk_pixbuf_get_height (pixbuf); rowstride = gdk_pixbuf_get_rowstride (pixbuf); @@ -3050,20 +3047,20 @@ gboolean pidgin_gdk_pixbuf_is_opaque(Gdk row = pixels; for (i = 3; i < rowstride; i+=4) { - if (row[i] != 0xff) + if (row[i] < 0xfe) return FALSE; } for (i = 1; i < height - 1; i++) { row = pixels + (i*rowstride); - if (row[3] != 0xff || row[rowstride-1] != 0xff) { + if (row[3] < 0xfe || row[rowstride-1] < 0xfe) { return FALSE; } } row = pixels + ((height-1) * rowstride); for (i = 3; i < rowstride; i+=4) { - if (row[i] != 0xff) + if (row[i] < 0xfe) return FALSE; }