Browse Source

Fixed a silly typo in the iPhone code.

tags/2021-05-28
Julian Storer 16 years ago
parent
commit
6013242bd9
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      juce_amalgamated.cpp
  2. +1
    -1
      src/native/mac/juce_iphone_UIViewComponentPeer.mm

+ 1
- 1
juce_amalgamated.cpp 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)


+ 1
- 1
src/native/mac/juce_iphone_UIViewComponentPeer.mm 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)


Loading…
Cancel
Save