diff options
author | thomasvl <thomasvl@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2008-05-09 18:53:09 +0000 |
---|---|---|
committer | thomasvl <thomasvl@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2008-05-09 18:53:09 +0000 |
commit | f90bcf3263b80b96754977ddbd5309704cf817fb (patch) | |
tree | 585db4c1126cea3bd0ff9b338628d33febe36e59 /Foundation/GTMGeometryUtils.m | |
parent | e5c365c04b9f2f6d04b2c5bd828f39fab2882e7d (diff) |
Flush out suppport for 64bit, GC support.
Added some more xcode configs related to the above.
Removed some classes that the unittesting doesn't need (and aren't able to
support 64bit).
add base64, httpfetcher, and progress monitor stream.
Diffstat (limited to 'Foundation/GTMGeometryUtils.m')
-rw-r--r-- | Foundation/GTMGeometryUtils.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Foundation/GTMGeometryUtils.m b/Foundation/GTMGeometryUtils.m index f5b38dc..0e893ff 100644 --- a/Foundation/GTMGeometryUtils.m +++ b/Foundation/GTMGeometryUtils.m @@ -79,13 +79,13 @@ NSRect GTMAlignRectangles(NSRect alignee, NSRect aligner, GTMRectAlignment align NSRect GTMScaleRectangleToSize(NSRect scalee, NSSize size, GTMScaling scaling) { switch (scaling) { case GTMScaleProportionally: { - float height = NSHeight(scalee); - float width = NSWidth(scalee); + CGFloat height = NSHeight(scalee); + CGFloat width = NSWidth(scalee); if (isnormal(height) && isnormal(width) && (height > size.height || width > size.width)) { - float horiz = size.width / width; - float vert = size.height / height; - float newScale = horiz < vert ? horiz : vert; + CGFloat horiz = size.width / width; + CGFloat vert = size.height / height; + CGFloat newScale = horiz < vert ? horiz : vert; scalee = GTMNSRectScale(scalee, newScale, newScale); } break; |