aboutsummaryrefslogtreecommitdiff
path: root/iPhone/GTMUIImage+Resize.m
Commit message (Collapse)AuthorAge
* Cast NSInteger to long for formatting as %ldGravatar Mark Mentovai2017-07-24
| | | | | | | | | | | | | | In https://crbug.com/747643, a new version of Clang produces warnings when attempting to format NSInteger as %zd (which is normally used for ssize_t). Acquiesce by casting NSInteger to long and formatting using %ld. In the process, I audited all occurrences of %zd in GTM and found that the remainder were being used to format size_t, which ought to use %zu, so I’ve corrected those. I also audited the existing uses of %zu and found them all to be correct.
* keep the scale when resizing an imageGravatar Thomas Van Lenten2015-09-08
|
* Fix compilation warning when building for arm64Gravatar gtm.daemon2014-02-11
| | | | | | | | When building for arm64, NSInteger is a 64-bit value. Recommendations are to either use "%ld" and cast the value to long or to use "%zd". This patch uses "%zd" that work on both armv7 and arm64 as it avoid doing a cast. DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: caseyho]Gravatar gtm.daemon2010-05-26
| | | | | | | UIImage rotate method plus tests. R=altse APPROVED=altse DELTA=152 (152 added, 0 deleted, 0 changed)
* [Author: altse]Gravatar gtm.daemon2009-06-22
| | | | | | | Use UIImage drawing methods rather than CGContext. This respects the UIImageOrientation unlike CGContext. R=thomasvl DELTA=21 (0 added, 14 deleted, 7 changed)
* [Author: altse]Gravatar gtm.daemon2009-06-02
Add category extension to UIImage to allow resizing while preserving aspect ratios and optional image clipping. R=thomasvl,dmaclach DELTA=507 (507 added, 0 deleted, 0 changed)