1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Fix some compiler warnings

This commit is contained in:
Tom Poole 2023-08-18 15:14:51 +01:00
parent 0f307122d9
commit 82f1fd57a4
23 changed files with 88 additions and 101 deletions

View file

@ -836,7 +836,7 @@ private:
break;
case kCGImagePropertyOrientationRight:
CGContextRotateCTM (context, 90 * MathConstants<CGFloat>::pi / 180);
CGContextScaleCTM (context, targetSize.height / origHeight, -targetSize.width / origWidth);
CGContextScaleCTM (context, targetSize.height / (CGFloat) origHeight, -targetSize.width / (CGFloat) origWidth);
break;
case kCGImagePropertyOrientationDown:
CGContextTranslateCTM (context, targetSize.width, 0.0);
@ -844,7 +844,7 @@ private:
break;
case kCGImagePropertyOrientationLeft:
CGContextRotateCTM (context, -90 * MathConstants<CGFloat>::pi / 180);
CGContextScaleCTM (context, targetSize.height / origHeight, -targetSize.width / origWidth);
CGContextScaleCTM (context, targetSize.height / (CGFloat) origHeight, -targetSize.width / (CGFloat) origWidth);
CGContextTranslateCTM (context, -targetSize.width, -targetSize.height);
break;
case kCGImagePropertyOrientationUpMirrored:

View file

@ -592,7 +592,7 @@ private:
if (useNativeControls)
return std::make_unique<WrappedPlayerView>();
return std::make_unique<WrappedPlayerLayer> ();
return std::make_unique<WrappedPlayerLayer>();
}();
}
@ -650,7 +650,7 @@ private:
class WrappedPlayerLayer : public WrappedPlayer
{
public:
WrappedPlayerLayer () { [view.get() setLayer: playerLayer.get()]; }
WrappedPlayerLayer() { [view.get() setLayer: playerLayer.get()]; }
NSView* getView() const override { return view.get(); }
AVPlayer* getPlayer() const override { return [playerLayer.get() player]; }
void setPlayer (AVPlayer* player) override { [playerLayer.get() setPlayer: player]; }