comparison pidgin/gtkutils.c @ 29770:9e9c20b705d3

Allow icons to be exactly the max file size
author Mark Doliner <mark@kingant.net>
date Wed, 21 Apr 2010 08:07:46 +0000
parents 1a4362fca50e
children c62fac7ada0d 7c871249318b c317ae5dcb6e 6e9c4f45595c
comparison
equal deleted inserted replaced
29769:1a4362fca50e 29770:9e9c20b705d3
2467 /* We couldn't convert to this image type. Try the next 2467 /* We couldn't convert to this image type. Try the next
2468 image type. */ 2468 image type. */
2469 break; 2469 break;
2470 } 2470 }
2471 2471
2472 if (spec->max_filesize == 0 || length < spec->max_filesize) { 2472 if (spec->max_filesize == 0 || length <= spec->max_filesize) {
2473 /* We were able to save the image as this image type and 2473 /* We were able to save the image as this image type and
2474 have it be within the size constraints. Great! Return 2474 have it be within the size constraints. Great! Return
2475 the image. */ 2475 the image. */
2476 purple_debug_info("buddyicon", "Converted image from " 2476 purple_debug_info("buddyicon", "Converted image from "
2477 "%dx%d to %dx%d, format=%s, quality=%u, " 2477 "%dx%d to %dx%d, format=%s, quality=%u, "