From ba68fb02123ff7dc897be736d1e39d72bafcffd8 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 3 Dec 2018 17:15:58 +0000 Subject: [PATCH] Windows: Fixed an OpenGL bug in non-DPI aware windows with a global scale factor != 1.0 --- modules/juce_opengl/native/juce_OpenGL_win32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_opengl/native/juce_OpenGL_win32.h b/modules/juce_opengl/native/juce_OpenGL_win32.h index 15ed2154ba..19cef8ab6c 100644 --- a/modules/juce_opengl/native/juce_OpenGL_win32.h +++ b/modules/juce_opengl/native/juce_OpenGL_win32.h @@ -166,7 +166,7 @@ public: if (nativeWindow != nullptr && shouldScaleGLWindow (nativeWindow->getNativeHandle())) return Desktop::getInstance().getDisplays().findDisplayForRect (screenBounds).scale; - return 1.0; + return Desktop::getInstance().getGlobalScaleFactor(); } private: