1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +00:00

Fixed a silly typo in the iPhone code.

This commit is contained in:
Julian Storer 2010-02-20 16:27:04 +00:00
parent b86423193e
commit 6013242bd9
2 changed files with 2 additions and 2 deletions

View file

@ -241320,7 +241320,7 @@ const Point<int> UIViewComponentPeer::relativePositionToGlobal (const Point<int>
const Point<int> UIViewComponentPeer::globalPositionToRelative (const Point<int>& screenPosition)
{
return screenPosition + getScreenPosition();
return screenPosition - getScreenPosition();
}
CGRect UIViewComponentPeer::constrainRect (CGRect r)

View file

@ -490,7 +490,7 @@ const Point<int> UIViewComponentPeer::relativePositionToGlobal (const Point<int>
const Point<int> UIViewComponentPeer::globalPositionToRelative (const Point<int>& screenPosition)
{
return screenPosition + getScreenPosition();
return screenPosition - getScreenPosition();
}
CGRect UIViewComponentPeer::constrainRect (CGRect r)