aboutsummaryrefslogtreecommitdiff
path: root/AppKit
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2016-04-07 09:08:02 -0400
committerGravatar Thomas Van Lenten <thomasvl@google.com>2016-04-07 09:08:02 -0400
commitd0c55f1c0d3044085251f60c78854e25365ae6ea (patch)
treef42a886554e6f3894029617eeb8da1b23e2e8491 /AppKit
parent1dc2f31a665871ba5889c121ce2fbe24174f297d (diff)
Fix GTMGeometry builds on 64 bit OS X where CG and NS struct sizes may differ.
Remove GTMCGPointToNSPoint, GTMNSPointToCGPoint, GTMCGRectToNSRect, GTMCGSizeToNSSize Note that Apple's NSGeometry.h sometimes defines NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES so there's some reason to believe the CG and NS structs can compile incompatibly. Fix a typo in GTMSenTestCase.h
Diffstat (limited to 'AppKit')
-rw-r--r--AppKit/GTMNSBezierPath+Shading.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/AppKit/GTMNSBezierPath+Shading.m b/AppKit/GTMNSBezierPath+Shading.m
index fa72849..5e65b14 100644
--- a/AppKit/GTMNSBezierPath+Shading.m
+++ b/AppKit/GTMNSBezierPath+Shading.m
@@ -94,8 +94,8 @@
}
CGColorSpaceRef colorspace = [shading colorSpace];
if (nil != colorspace) {
- CGPoint toCGPoint = GTMNSPointToCGPoint(toPoint);
- CGPoint fromCGPoint = GTMNSPointToCGPoint(fromPoint);
+ CGPoint toCGPoint = {.x = toPoint.x, .y = toPoint.y};
+ CGPoint fromCGPoint = {.x = fromPoint.x, .y = fromPoint.y};
CGShadingRef myCGShading;
if(axially) {
myCGShading = CGShadingCreateAxial(colorspace, fromCGPoint,