1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

iOS: Fixed some build warnings

This commit is contained in:
ed 2020-04-27 18:20:59 +01:00
parent 48acdf58ef
commit 11cf10689d
2 changed files with 13 additions and 2 deletions

View file

@ -47,6 +47,7 @@ namespace Orientations
case UIInterfaceOrientationPortraitUpsideDown: return Desktop::upsideDown;
case UIInterfaceOrientationLandscapeLeft: return Desktop::rotatedClockwise;
case UIInterfaceOrientationLandscapeRight: return Desktop::rotatedAntiClockwise;
case UIInterfaceOrientationUnknown:
default: jassertfalse; // unknown orientation!
}
@ -61,6 +62,7 @@ namespace Orientations
case Desktop::upsideDown: return UIInterfaceOrientationPortraitUpsideDown;
case Desktop::rotatedClockwise: return UIInterfaceOrientationLandscapeLeft;
case Desktop::rotatedAntiClockwise: return UIInterfaceOrientationLandscapeRight;
case Desktop::allOrientations:
default: jassertfalse; // unknown orientation!
}
@ -76,7 +78,9 @@ namespace Orientations
case Desktop::upsideDown: return CGAffineTransformMake (-1, 0, 0, -1, 0, 0);
case Desktop::rotatedClockwise: return CGAffineTransformMake (0, -1, 1, 0, 0, 0);
case Desktop::rotatedAntiClockwise: return CGAffineTransformMake (0, 1, -1, 0, 0, 0);
default: break;
case Desktop::upright:
case Desktop::allOrientations:
default: break;
}
}
@ -267,6 +271,7 @@ public:
return Rectangle<int> (screen.getWidth() - r.getBottom(), r.getX(),
r.getHeight(), r.getWidth());
case UIInterfaceOrientationUnknown:
default: jassertfalse; // unknown orientation!
}
}
@ -297,6 +302,7 @@ public:
return Rectangle<int> (r.getY(), screen.getWidth() - r.getRight(),
r.getHeight(), r.getWidth());
case UIInterfaceOrientationUnknown:
default: jassertfalse; // unknown orientation!
}
}

View file

@ -278,7 +278,8 @@ private:
{
case AVCaptureAutoFocusSystemPhaseDetection: autoFocusSystemString = "PhaseDetection"; break;
case AVCaptureAutoFocusSystemContrastDetection: autoFocusSystemString = "ContrastDetection"; break;
default: autoFocusSystemString = "None";
case AVCaptureAutoFocusSystemNone:
default: autoFocusSystemString = "None";
}
JUCE_CAMERA_LOG ("Auto focus system: " + autoFocusSystemString);
@ -869,6 +870,10 @@ private:
CGContextScaleCTM (context, targetSize.height / origHeight, -targetSize.width / origWidth);
CGContextTranslateCTM (context, -targetSize.width, -targetSize.height);
break;
case kCGImagePropertyOrientationUpMirrored:
case kCGImagePropertyOrientationDownMirrored:
case kCGImagePropertyOrientationLeftMirrored:
case kCGImagePropertyOrientationRightMirrored:
default:
// Not implemented.
jassertfalse;