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:
parent
b86423193e
commit
6013242bd9
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue