Browse Source

OpenGLContext: Correctly size GL view when using a non-unity global scale

v6.1.6
reuk 3 years ago
parent
commit
45ae98effd
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_opengl/opengl/juce_OpenGLContext.cpp

+ 1
- 1
modules/juce_opengl/opengl/juce_OpenGLContext.cpp View File

@@ -359,7 +359,7 @@ public:
if (auto* peer = component.getPeer())
{
#if JUCE_MAC
const auto displayScale = [this]
const auto displayScale = Desktop::getInstance().getGlobalScaleFactor() * [this]
{
if (auto* wrapper = cvDisplayLinkWrapper.get())
if (wrapper->updateActiveDisplay())


Loading…
Cancel
Save