Browse Source

Fix some iOS build warnings

tags/2021-05-28
hogliux 9 years ago
parent
commit
fb8a1dbf48
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      modules/juce_core/native/juce_mac_Files.mm
  2. +2
    -2
      modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm

+ 2
- 2
modules/juce_core/native/juce_mac_Files.mm View File

@@ -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


+ 2
- 2
modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm View File

@@ -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…
Cancel
Save