# HG changeset patch # User Stu Tomlinson # Date 1181073929 0 # Node ID 3aafa9d3119c57266b93c31782f55240b67ac0b1 # Parent 647bfc2b2a7b91da2c6920280923a097334914ab Fix rounding of buddy icons, it looks like when MSN Messenger converts jpgs to pngs it gives the entire image an alpha of 254, or something odd like that. Fixes #1248 diff -r 647bfc2b2a7b -r 3aafa9d3119c pidgin/gtkutils.c --- a/pidgin/gtkutils.c Tue Jun 05 12:48:22 2007 +0000 +++ b/pidgin/gtkutils.c Tue Jun 05 20:05:29 2007 +0000 @@ -3034,20 +3034,20 @@ 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; }