From 6013242bd9a635ec9b0810d5c19248e22be1659f Mon Sep 17 00:00:00 2001 From: Julian Storer Date: Sat, 20 Feb 2010 16:27:04 +0000 Subject: [PATCH] Fixed a silly typo in the iPhone code. --- juce_amalgamated.cpp | 2 +- src/native/mac/juce_iphone_UIViewComponentPeer.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/juce_amalgamated.cpp b/juce_amalgamated.cpp index fe695e54e4..f27ca20b1c 100644 --- a/juce_amalgamated.cpp +++ b/juce_amalgamated.cpp @@ -241320,7 +241320,7 @@ const Point UIViewComponentPeer::relativePositionToGlobal (const Point const Point UIViewComponentPeer::globalPositionToRelative (const Point& screenPosition) { - return screenPosition + getScreenPosition(); + return screenPosition - getScreenPosition(); } CGRect UIViewComponentPeer::constrainRect (CGRect r) diff --git a/src/native/mac/juce_iphone_UIViewComponentPeer.mm b/src/native/mac/juce_iphone_UIViewComponentPeer.mm index 51cc88f2f8..9ecce2a17e 100644 --- a/src/native/mac/juce_iphone_UIViewComponentPeer.mm +++ b/src/native/mac/juce_iphone_UIViewComponentPeer.mm @@ -490,7 +490,7 @@ const Point UIViewComponentPeer::relativePositionToGlobal (const Point const Point UIViewComponentPeer::globalPositionToRelative (const Point& screenPosition) { - return screenPosition + getScreenPosition(); + return screenPosition - getScreenPosition(); } CGRect UIViewComponentPeer::constrainRect (CGRect r)