diff --git a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp index 3cf314ea16..a2532fb0d7 100644 --- a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp +++ b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp @@ -468,9 +468,7 @@ public: const auto newArea = globalArea.withZeroOrigin() * displayScale; #else - const auto newArea = desktop.getDisplays() - .logicalToPhysical (globalArea) - .withZeroOrigin(); + const auto newArea = (globalArea.toFloat() * peer->getPlatformScaleFactor()).withZeroOrigin().toNearestInt(); #endif // On Windows some hosts (Pro Tools 2022.7) do not take the current DPI into account