From 6bbe61f02423bea4669e26c3620f613c141bcff3 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 16 Mar 2015 15:28:06 +0000 Subject: [PATCH] Compiler warning fix in iOS build. --- modules/juce_opengl/native/juce_OpenGL_ios.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_opengl/native/juce_OpenGL_ios.h b/modules/juce_opengl/native/juce_OpenGL_ios.h index 93daac988e..4bb69389a4 100644 --- a/modules/juce_opengl/native/juce_OpenGL_ios.h +++ b/modules/juce_opengl/native/juce_OpenGL_ios.h @@ -70,7 +70,7 @@ public: view.userInteractionEnabled = NO; glLayer = (CAEAGLLayer*) [view layer]; - glLayer.contentsScale = Desktop::getInstance().getDisplays().getMainDisplay().scale; + glLayer.contentsScale = (CGFloat) Desktop::getInstance().getDisplays().getMainDisplay().scale; glLayer.opaque = true; [((UIView*) peer->getNativeHandle()) addSubview: view];