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];