From b4b8aa939f54f3c439d50697e206de3f7d59f9d0 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 14 Jan 2013 20:35:14 +0000 Subject: [PATCH] Fix for iOS high-DPI openGL. --- modules/juce_opengl/native/juce_OpenGL_ios.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/juce_opengl/native/juce_OpenGL_ios.h b/modules/juce_opengl/native/juce_OpenGL_ios.h index dc3352cb6f..4b0bb4e2ca 100644 --- a/modules/juce_opengl/native/juce_OpenGL_ios.h +++ b/modules/juce_opengl/native/juce_OpenGL_ios.h @@ -66,6 +66,8 @@ public: view.userInteractionEnabled = NO; glLayer = (CAEAGLLayer*) [view layer]; + glLayer.contentsScale = Desktop::getInstance().getDisplays().getMainDisplay().scale; + [((UIView*) peer->getNativeHandle()) addSubview: view]; context = [EAGLContext alloc];