mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Fix some iOS build warnings
This commit is contained in:
parent
4ef190cc5e
commit
fb8a1dbf48
2 changed files with 4 additions and 4 deletions
|
|
@ -106,8 +106,7 @@ namespace FileHelpers
|
|||
return nsStringToJuce ([NSSearchPathForDirectoriesInDomains (type, NSUserDomainMask, YES)
|
||||
objectAtIndex: 0]);
|
||||
}
|
||||
#endif
|
||||
|
||||
#else
|
||||
static bool launchExecutable (const String& pathAndArguments)
|
||||
{
|
||||
const char* const argv[4] = { "/bin/sh", "-c", pathAndArguments.toUTF8(), 0 };
|
||||
|
|
@ -128,6 +127,7 @@ namespace FileHelpers
|
|||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool File::isOnCDRomDrive() const
|
||||
|
|
|
|||
|
|
@ -771,7 +771,7 @@ void UIViewComponentPeer::handleTouches (UIEvent* event, const bool isDown, cons
|
|||
continue;
|
||||
|
||||
CGPoint p = [touch locationInView: view];
|
||||
const Point<float> pos (p.x, p.y);
|
||||
const Point<float> pos (static_cast<float> (p.x), static_cast<float> (p.y));
|
||||
juce_lastMousePos = pos + getBounds (true).getPosition().toFloat();
|
||||
|
||||
const int64 time = getMouseTime (event);
|
||||
|
|
@ -947,7 +947,7 @@ void UIViewComponentPeer::drawRect (CGRect r)
|
|||
CGContextClearRect (cg, CGContextGetClipBoundingBox (cg));
|
||||
|
||||
CGContextConcatCTM (cg, CGAffineTransformMake (1, 0, 0, -1, 0, getComponent().getHeight()));
|
||||
CoreGraphicsContext g (cg, getComponent().getHeight(), [UIScreen mainScreen].scale);
|
||||
CoreGraphicsContext g (cg, getComponent().getHeight(), static_cast<float> ([UIScreen mainScreen].scale));
|
||||
|
||||
insideDrawRect = true;
|
||||
handlePaint (g);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue